DiscordLua
discorddiscord
v1.2.4
Install

ActivityInstance

Class
On this page

ActivityInstance is a DiscordLua class representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.

class Module 1.2.4 Source

Properties

ActivityInstance.applicationId

# readonly
Name
applicationId
Type
any
Access
readonly
Description
Instance field ActivityInstance.applicationId. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this ActivityInstance.

ActivityInstance.client

# readonly
Name
client
Type
any
Access
readonly
Description
Owning Client instance used for REST, cache, and event dispatch.
Availability
Populated from the Gateway/REST payload or constructor for this ActivityInstance.

ActivityInstance.instanceId

# readonly
Name
instanceId
Type
any
Access
readonly
Description
Instance field ActivityInstance.instanceId. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this ActivityInstance.

ActivityInstance.launchId

# readonly
Name
launchId
Type
any
Access
readonly
Description
Instance field ActivityInstance.launchId. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this ActivityInstance.

ActivityInstance.location

# readonly
Name
location
Type
ActivityLocation
Access
readonly
Description
Instance field ActivityInstance.location. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this ActivityInstance.
Related
ActivityLocation

ActivityInstance.raw

# readonly
Name
raw
Type
any
Access
readonly
Description
Instance field ActivityInstance.raw. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this ActivityInstance.

ActivityInstance.users

# readonly
Name
users
Type
any
Access
readonly
Description
Instance field ActivityInstance.users. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this ActivityInstance.

Examples

Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.

ActionRow · Activity · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment · AuthorizingIntegrationOwners

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc