AutocompleteInteraction
Defined in: sdk/js/src/interactions/command.ts:76
Typing in an autocomplete option. Call respond before the handler returns.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AutocompleteInteraction(
raw,data):AutocompleteInteraction
Defined in: sdk/js/src/interactions/command.ts:84
Parameters
Section titled “Parameters”Interaction
CommandData
Returns
Section titled “Returns”AutocompleteInteraction
Overrides
Section titled “Overrides”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”BaseInteraction.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”choices
Section titled “choices”choices:
Choice[] =[]
Defined in: sdk/js/src/interactions/command.ts:81
The choices given to respond; the SDK returns them to the host.
commandId
Section titled “commandId”
readonlycommandId:string
Defined in: sdk/js/src/interactions/command.ts:77
commandName
Section titled “commandName”
readonlycommandName:string
Defined in: sdk/js/src/interactions/command.ts:78
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”BaseInteraction.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”options
Section titled “options”
readonlyoptions:CommandInteractionOptionResolver
Defined in: sdk/js/src/interactions/command.ts:79
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”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”BaseInteraction.isAnySelectMenu
isAutocomplete()
Section titled “isAutocomplete()”isAutocomplete():
this is AutocompleteInteraction
Defined in: sdk/js/src/interactions/command.ts:92
Returns
Section titled “Returns”this is AutocompleteInteraction
Overrides
Section titled “Overrides”BaseInteraction.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”BaseInteraction.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”BaseInteraction.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”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”BaseInteraction.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”BaseInteraction.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”BaseInteraction.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”BaseInteraction.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”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”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”BaseInteraction.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”BaseInteraction.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”BaseInteraction.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”BaseInteraction.isUserSelectMenu
respond()
Section titled “respond()”respond(
choices):void
Defined in: sdk/js/src/interactions/command.ts:95
Up to 25 suggestions.
Parameters
Section titled “Parameters”choices
Section titled “choices”Returns
Section titled “Returns”void