InteractionCallback
ClassOn this page
InteractionCallback is a DiscordLua class representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.
Properties
- Name
activityInstanceId- Type
any- Access
- readonly
- Description
- Instance field
InteractionCallback.activityInstanceId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this InteractionCallback.
- 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 InteractionCallback.
- Name
id- Type
any- Access
- readonly
- Description
- Snowflake id of this InteractionCallback.
- Availability
- Populated from the Gateway/REST payload or constructor for this InteractionCallback.
- Name
raw- Type
any- Access
- readonly
- Description
- Instance field
InteractionCallback.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 InteractionCallback.
- Name
responseMessageEphemeral- Type
any- Access
- readonly
- Description
- Instance field
InteractionCallback.responseMessageEphemeral. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this InteractionCallback.
- Name
responseMessageId- Type
any- Access
- readonly
- Description
- Instance field
InteractionCallback.responseMessageId. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this InteractionCallback.
- Name
responseMessageLoading- Type
any- Access
- readonly
- Description
- Instance field
InteractionCallback.responseMessageLoading. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this InteractionCallback.
- Name
type- Type
any- Access
- readonly
- Description
- Instance field
InteractionCallback.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 InteractionCallback.
Methods
InteractionCallback:createdAt()
#Create dAt through REST and cache the result when the request succeeds. Pass function(err, result) to handle failures without raising.
Signature
InteractionCallback:createdAt() Parameters
No parameters.
Returns
InteractionCallback — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a InteractionCallback
object:createdAt()InteractionCallback:createdTimestamp()
#Create dTimestamp through REST and cache the result when the request succeeds. Pass function(err, result) to handle failures without raising.
Signature
InteractionCallback:createdTimestamp() Parameters
No parameters.
Returns
InteractionCallback — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a InteractionCallback
object:createdTimestamp()Examples
Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.
Related APIs
ActionRow · Activity · ActivityInstance · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment
Version: discord 1.2.4 · runtime 1.0.0