ModalCapableInteraction
Defined in: sdk/js/src/interactions/base.ts:103
Interactions that may open a modal (commands and components, not modal submits).
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ModalCapableInteraction(
raw):ModalCapableInteraction
Defined in: sdk/js/src/interactions/base.ts:32
Parameters
Section titled “Parameters”Interaction
Returns
Section titled “Returns”ModalCapableInteraction
Inherited from
Section titled “Inherited from”RepliableInteraction.constructor
Properties
Section titled “Properties”appPermissions
Section titled “appPermissions”
readonlyappPermissions:bigint
Defined in: sdk/js/src/interactions/base.ts:20
The bot’s effective permissions in the channel.
Inherited from
Section titled “Inherited from”RepliableInteraction.appPermissions
readonlybotId:string
Defined in: sdk/js/src/interactions/base.ts:15
The bot’s id in this community.
Inherited from
Section titled “Inherited from”channelId
Section titled “channelId”
readonlychannelId:string
Defined in: sdk/js/src/interactions/base.ts:16
Inherited from
Section titled “Inherited from”RepliableInteraction.channelId
createdTimestamp
Section titled “createdTimestamp”
readonlycreatedTimestamp:number
Defined in: sdk/js/src/interactions/base.ts:24
When the host received it, ms.
Inherited from
Section titled “Inherited from”RepliableInteraction.createdTimestamp
deferred
Section titled “deferred”deferred:
boolean=false
Defined in: sdk/js/src/interactions/base.ts:30
Whether the response was deferred.
Inherited from
Section titled “Inherited from”
readonlyid:string
Defined in: sdk/js/src/interactions/base.ts:13
The interaction id.
Inherited from
Section titled “Inherited from”locale
Section titled “locale”
readonlylocale:string
Defined in: sdk/js/src/interactions/base.ts:22
The invoker’s locale (BCP 47), if their client sent one.
Inherited from
Section titled “Inherited from”member
Section titled “member”
readonlymember:Member
Defined in: sdk/js/src/interactions/base.ts:18
Who triggered it: interaction.member.send(...) sends them a DM.
Inherited from
Section titled “Inherited from”
readonlyraw:Interaction
Defined in: sdk/js/src/interactions/base.ts:26
The WIT interaction, for anything the classes do not expose.
Inherited from
Section titled “Inherited from”replied
Section titled “replied”replied:
boolean=false
Defined in: sdk/js/src/interactions/base.ts:28
Whether an initial response was sent.
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”userId
Section titled “userId”Get Signature
Section titled “Get Signature”get userId():
string
Defined in: sdk/js/src/interactions/base.ts:44
The invoker’s member id.
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”deferReply()
Section titled “deferReply()”deferReply(
options?):void
Defined in: sdk/js/src/interactions/base.ts:81
Shows “thinking…” and buys 15 minutes; finish with editReply.
Parameters
Section titled “Parameters”options?
Section titled “options?”ephemeral?
Section titled “ephemeral?”boolean
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”RepliableInteraction.deferReply
deleteReply()
Section titled “deleteReply()”deleteReply():
void
Defined in: sdk/js/src/interactions/base.ts:92
Deletes the original response.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”RepliableInteraction.deleteReply
editReply()
Section titled “editReply()”editReply(
payload):void
Defined in: sdk/js/src/interactions/base.ts:87
Replaces the original response (ends a deferred reply).
Parameters
Section titled “Parameters”payload
Section titled “payload”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”RepliableInteraction.editReply
followUp()
Section titled “followUp()”followUp(
payload):string
Defined in: sdk/js/src/interactions/base.ts:97
Another message, within 15 minutes (at most 10).
Parameters
Section titled “Parameters”payload
Section titled “payload”Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”isAnySelectMenu()
Section titled “isAnySelectMenu()”isAnySelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:67
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isAnySelectMenu
isAutocomplete()
Section titled “isAutocomplete()”isAutocomplete():
boolean
Defined in: sdk/js/src/interactions/base.ts:69
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isAutocomplete
isButton()
Section titled “isButton()”isButton():
boolean
Defined in: sdk/js/src/interactions/base.ts:61
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isChannelSelectMenu()
Section titled “isChannelSelectMenu()”isChannelSelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:66
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isChannelSelectMenu
isChatInputCommand()
Section titled “isChatInputCommand()”isChatInputCommand():
boolean
Defined in: sdk/js/src/interactions/base.ts:55
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isChatInputCommand
isCommand()
Section titled “isCommand()”isCommand():
boolean
Defined in: sdk/js/src/interactions/base.ts:59
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isCommand
isContextMenuCommand()
Section titled “isContextMenuCommand()”isContextMenuCommand():
boolean
Defined in: sdk/js/src/interactions/base.ts:56
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isContextMenuCommand
isMentionableSelectMenu()
Section titled “isMentionableSelectMenu()”isMentionableSelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:65
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isMentionableSelectMenu
isMessageComponent()
Section titled “isMessageComponent()”isMessageComponent():
boolean
Defined in: sdk/js/src/interactions/base.ts:60
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isMessageComponent
isMessageContextMenuCommand()
Section titled “isMessageContextMenuCommand()”isMessageContextMenuCommand():
boolean
Defined in: sdk/js/src/interactions/base.ts:58
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isMessageContextMenuCommand
isModalSubmit()
Section titled “isModalSubmit()”isModalSubmit():
boolean
Defined in: sdk/js/src/interactions/base.ts:68
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isModalSubmit
isRepliable()
Section titled “isRepliable()”isRepliable():
boolean
Defined in: sdk/js/src/interactions/base.ts:70
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isRepliable
isRoleSelectMenu()
Section titled “isRoleSelectMenu()”isRoleSelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:64
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isRoleSelectMenu
isStringSelectMenu()
Section titled “isStringSelectMenu()”isStringSelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:62
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isStringSelectMenu
isUserContextMenuCommand()
Section titled “isUserContextMenuCommand()”isUserContextMenuCommand():
boolean
Defined in: sdk/js/src/interactions/base.ts:57
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isUserContextMenuCommand
isUserSelectMenu()
Section titled “isUserSelectMenu()”isUserSelectMenu():
boolean
Defined in: sdk/js/src/interactions/base.ts:63
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”RepliableInteraction.isUserSelectMenu
reply()
Section titled “reply()”reply(
payload):string
Defined in: sdk/js/src/interactions/base.ts:76
Answers with a message in the channel (or only to the invoker with ephemeral).
Parameters
Section titled “Parameters”payload
Section titled “payload”Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”showModal()
Section titled “showModal()”showModal(
modal):void
Defined in: sdk/js/src/interactions/base.ts:105
Opens a modal for the invoker.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void