Skip to content

ApplicationCommandInteraction

ApplicationCommandInteraction ⇐ Interaction

Represents an application command interaction.

Kind: global class
Extends: Interaction
Properties

NameTypeDescription
commandIdstring | nullThe ID of the command associated with the interaction.
commandNamestring | nullThe name of the command associated with the interaction.
commandTypestring | nullThe type of the command associated with the interaction.
optionsCommandInteractionOptionResolverThe resolver for the command interaction options.

new ApplicationCommandInteraction([data], guildId, client)

Constructs a new instance of the CommandInteraction class.

ParamTypeDescription
[data]ObjectThe data object containing information about the interaction.
guildIdstringThe ID of the guild where the interaction occurred.
clientClientThe client instance.