DiscordLua
discorddiscord
v1.2.4
Install

InteractionResponses

Class
On this page

InteractionResponses 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

Methods

InteractionResponses:awaitModalSubmit()

#

Performs await modal submit on this InteractionResponses. Call it from bot code when you need that operation on the current object.

Signature

InteractionResponses:awaitModalSubmit(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:awaitModalSubmit(...)

InteractionResponses:deferReply()

#

Acknowledge an interaction with a deferred channel message.

Signature

InteractionResponses:deferReply(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:deferReply(...)

InteractionResponses:deferUpdate()

#

Performs defer update on this InteractionResponses. Call it from bot code when you need that operation on the current object.

Signature

InteractionResponses:deferUpdate(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:deferUpdate(...)

InteractionResponses:deleteReply()

#

Permanently delete Reply through REST.

Signature

InteractionResponses:deleteReply(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:deleteReply(...)

InteractionResponses:editReply()

#

Apply a REST update to Reply and refresh the local object when the request succeeds.

Signature

InteractionResponses:editReply(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:editReply(...)

InteractionResponses:fetchReply()

#

Fetch Reply from REST and update the local cache when the request succeeds.

Signature

InteractionResponses:fetchReply(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:fetchReply(...)

InteractionResponses:followUp()

#

Send an additional webhook follow-up after the first response.

Signature

InteractionResponses:followUp(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:followUp(...)

InteractionResponses:launchActivity()

#

Performs launch activity on this InteractionResponses. Call it from bot code when you need that operation on the current object.

Signature

InteractionResponses:launchActivity(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:launchActivity(...)

InteractionResponses:reply()

#

Send a message in the same channel as a reply to this object.

Signature

InteractionResponses:reply(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:reply(...)

InteractionResponses:sendPremiumRequired()

#

Send PremiumRequired using this InteractionResponses.

Signature

InteractionResponses:sendPremiumRequired(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:sendPremiumRequired(...)

InteractionResponses:showModal()

#

Open a modal UI for this interaction.

Signature

InteractionResponses:showModal(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:showModal(...)

InteractionResponses:update()

#

Performs update on this InteractionResponses. Call it from bot code when you need that operation on the current object.

Signature

InteractionResponses:update(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

any.

Example

lua
local discord = require("discord")
-- object is a InteractionResponses
object:update(...)

Examples

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

Version: discord 1.2.4 · runtime 1.0.0

Search Ctrl K Navigate Open Esc