DiscordLua
discorddiscord
v1.2.4
Install

InteractionCallbackResource

Class
On this page

InteractionCallbackResource 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

InteractionCallbackResource.activityInstance

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

InteractionCallbackResource.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 InteractionCallbackResource.

InteractionCallbackResource.message

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

InteractionCallbackResource.raw

# readonly
Name
raw
Type
any
Access
readonly
Description
Instance field InteractionCallbackResource.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 InteractionCallbackResource.

InteractionCallbackResource.type

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

Examples

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

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

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc