DiscordLua
discorddiscord
v1.2.4
Install

InteractionCallback

Class
On 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.

class Module 1.2.4 Source

Properties

InteractionCallback.activityInstanceId

# readonly
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.

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

InteractionCallback.id

# readonly
Name
id
Type
any
Access
readonly
Description
Snowflake id of this InteractionCallback.
Availability
Populated from the Gateway/REST payload or constructor for this InteractionCallback.

InteractionCallback.raw

# readonly
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.

InteractionCallback.responseMessageEphemeral

# readonly
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.

InteractionCallback.responseMessageId

# readonly
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.

InteractionCallback.responseMessageLoading

# readonly
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.

InteractionCallback.type

# readonly
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

lua
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

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

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

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc