Skip to content

Slash command interaction

dc_slash_command_interaction

Represents an interaction of an executed slash command from __on_discord_slash_command.

Queryable properties #

Also has all properties from the base interaction

Property Type Description
command_id String The ID of the application command.
command_name String The name of the application command.
sub_command String The name of the subcommand or null if the command is not a subcommand.
sub_command_group String The name of the subcommand group or null if the command is not in a subcommand group.
arguments List of Options The selected options of the command.
arguments_by_name Map of Options A map of all options (and sub-options), with the key being their name.

Option#

dc_slash_command_interaction_option

Represents a user-chosen option of an executed slash command.

Queryable properties #

Property Type Description
name String The name of the command option.
type String The type of the option
value String, Number, Boolean, User, Channel, Role, Attachment The value chosen by the user.