Class VenueContext

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

_client: Evogram
_source: IVenue
location: LocationContext = ...

The location context associated with this venue context.

Accessors

  • get foursquare(): {
        id: undefined | string;
        type: undefined | string;
    }
  • Returns the Foursquare ID and type associated with the venue.

    Returns {
        id: undefined | string;
        type: undefined | string;
    }

    • id: undefined | string
    • type: undefined | string
  • get googlePlace(): {
        id: undefined | string;
        type: undefined | string;
    }
  • Returns the Google Place ID and type associated with the venue.

    Returns {
        id: undefined | string;
        type: undefined | string;
    }

    • id: undefined | string
    • type: undefined | string

Methods

  • Converts the source object to a context object of a given type.

    Example

    client.updates.on("message", message => {
    const user = message.user.toContext<CustomUserContext>();
    // Now user works correctly with your context
    })

    Type Parameters

    • TContext extends object

      Generic type parameter for the context object.

    Returns TContext

    The context object.

Generated using TypeDoc