InteractionResponses
ClassOn 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.
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
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
local discord = require("discord")
-- object is a InteractionResponses
object:awaitModalSubmit(...)InteractionResponses:deferReply()
#Acknowledge an interaction with a deferred channel message.
Signature
InteractionResponses:deferReply(...) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
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
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
local discord = require("discord")
-- object is a InteractionResponses
object:deferUpdate(...)InteractionResponses:deleteReply()
#Permanently delete Reply through REST.
Signature
InteractionResponses:deleteReply(...) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
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
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
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
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
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
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
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
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
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
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
local discord = require("discord")
-- object is a InteractionResponses
object:reply(...)InteractionResponses:sendPremiumRequired()
#Send PremiumRequired using this InteractionResponses.
Signature
InteractionResponses:sendPremiumRequired(...) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
local discord = require("discord")
-- object is a InteractionResponses
object:sendPremiumRequired(...)InteractionResponses:showModal()
#Open a modal UI for this interaction.
Signature
InteractionResponses:showModal(...) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
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
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
any.
Example
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