ChatInputCommandInteraction
Defined in: sdk/js/src/interactions/command.ts:36
/command.
Extends
Section titled “Extends”CommandInteraction
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ChatInputCommandInteraction(
raw,data):ChatInputCommandInteraction
Defined in: sdk/js/src/interactions/command.ts:26
Parameters
Section titled “Parameters”Interaction
CommandData
Returns
Section titled “Returns”ChatInputCommandInteraction
Inherited from
Section titled “Inherited from”CommandInteraction.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”CommandInteraction.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”CommandInteraction.botId
channelId
Section titled “channelId”
readonlychannelId:string
Defined in: sdk/js/src/interactions/base.ts:16
Inherited from
Section titled “Inherited from”CommandInteraction.channelId
command
Section titled “command”
readonlycommand:CommandData
Defined in: sdk/js/src/interactions/command.ts:24
The WIT command data.
Inherited from
Section titled “Inherited from”CommandInteraction.command
commandId
Section titled “commandId”
readonlycommandId:string
Defined in: sdk/js/src/interactions/command.ts:20
Inherited from
Section titled “Inherited from”CommandInteraction.commandId
commandName
Section titled “commandName”
readonlycommandName:string
Defined in: sdk/js/src/interactions/command.ts:21
Inherited from
Section titled “Inherited from”CommandInteraction.commandName
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”CommandInteraction.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”CommandInteraction.deferred
readonlyid:string
Defined in: sdk/js/src/interactions/base.ts:13
The interaction id.
Inherited from
Section titled “Inherited from”CommandInteraction.id
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”CommandInteraction.locale
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”CommandInteraction.member
options
Section titled “options”
readonlyoptions:CommandInteractionOptionResolver
Defined in: sdk/js/src/interactions/command.ts:22
Inherited from
Section titled “Inherited from”CommandInteraction.options
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”CommandInteraction.raw
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”CommandInteraction.replied
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”CommandInteraction.userId
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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.followUp
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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.isButton
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”CommandInteraction.isChannelSelectMenu
isChatInputCommand()
Section titled “isChatInputCommand()”isChatInputCommand():
this is ChatInputCommandInteraction
Defined in: sdk/js/src/interactions/command.ts:37
Returns
Section titled “Returns”this is ChatInputCommandInteraction
Overrides
Section titled “Overrides”CommandInteraction.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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.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”CommandInteraction.reply
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
Inherited from
Section titled “Inherited from”CommandInteraction.showModal