Expand description
Application commands: slash commands, user and message context menu commands, and Activity entry points.
These are the commands as Discord returns them (GET .../commands). Their options are an
enum keyed by option type (D-069), with typed choices.
Structs§
- Application
Command - An application command.
- Attachment
Option - An attachment option.
- Basic
Option - A boolean, user, role or mentionable option (they share this structure).
- Channel
Option - A channel option.
- Choice
- A choice of an option
(also used for autocomplete suggestions).
Tis the option’s value type. - Command
Permission - One command permission: allows or denies a command for a role, user or channel.
- Guild
Command Permissions - The permissions of an app’s command(s) in a guild.
- Integer
Option - An integer option.
- Number
Option - A number (double) option.
- Option
Info - The fields every
CommandOptionhas, as returned byCommandOption::common. - String
Option - A string option.
- SubCommand
Option - A subcommand or a subcommand group.
- Unknown
Option - An option of a type this version of the library does not know about; the fields every option has are kept.
Enums§
- Command
Option - An option (parameter) of a slash command, one variant per option type (D-069).
- Command
Option Type - The type of a command option.
- Command
Permission Type - What a command permission applies to.
- Command
Type - The type of an application command.
- Entry
Point Handler Type - Who handles a primary entry point command.