Slash command interaction
dc_slash_command_interaction
Value from __on_discord_slash_command
event, used for getting the command that was executed, and then replying to it with dc_respond_interaction()
Queryable:#
Property | Type | Description |
---|---|---|
id |
String | Id of the interaction |
channel |
Channel | The channel this interaction was made in. |
user |
User | The user that used the interaction. |
token |
String | The continuation token internally used for responding to this interaction |
server |
Server | The server this reaction was made in |
locale |
String | The locale of the user executing the interaction (e.g. en-US) |
creation_timestamp |
Number | The timestamp as epoc milliseconds when this interaction was made |
command_id |
String | The id of the application command |
command_name |
String | The name of the application command |
arguments |
List of Slash command interaction options | The selected options of the command |
arguments_by_name |
Map of Slash command interaction options by their name | Returns a map of all options (and sub-options), with the key being their name |