DiscordApplicationCommandInteraction¶
Inherits: DiscordRepliableInteraction < DiscordInteraction < DiscordEntity < Reference < Object
Inherited By: DiscordMessageCommand, DiscordSlashCommand, DiscordUserCommand
Description¶
Abstract class for command based interaction.
Such as DiscordSlashCommands, DiscordUserCommands
and DiscordMessageCommands.
Properties¶
| type | name |
|---|---|
| DiscordApplicationCommandData | data |
Methods¶
| return type | signature |
|---|---|
| String | get_command ( ) |
| InteractionModalAction | show_modal ( String custom_id, String title ) |
Property Descriptions¶
-
DiscordApplicationCommandData data
Interaction data assossciated with the event.
Method Descriptions¶
-
String get_command ( )
Gets the name of the executed command.
-
InteractionModalAction show_modal ( String custom_id, String title )
Shows a modal popup.