ApplicationCommandInteraction
ApplicationCommandInteraction ⇐ Interaction
Represents an application command interaction.
Kind: global class
Extends: Interaction
Properties
Name | Type | Description |
---|---|---|
commandId | string | null | The ID of the command associated with the interaction. |
commandName | string | null | The name of the command associated with the interaction. |
commandType | string | null | The type of the command associated with the interaction. |
options | CommandInteractionOptionResolver | The resolver for the command interaction options. |
new ApplicationCommandInteraction([data], guildId, client)
Constructs a new instance of the CommandInteraction class.
Param | Type | Description |
---|---|---|
[data] | Object | The data object containing information about the interaction. |
guildId | string | The ID of the guild where the interaction occurred. |
client | Client | The client instance. |