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 #

Property Type Description
command_id String The ID of the application command.
command_name String The name of the application command.
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.
is_subcommand_or_group Boolean Whether if this option is a subcommand or a subcommand group.
value String, Number, Boolean, User, Channel, Role, Attachment The value chosen by the user.
options List of Options The sub-options of this option.