Skip to main content

Module application_command

Module application_command 

Source
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§

ApplicationCommand
An application command.
AttachmentOption
An attachment option.
BasicOption
A boolean, user, role or mentionable option (they share this structure).
ChannelOption
A channel option.
Choice
A choice of an option (also used for autocomplete suggestions). T is the option’s value type.
CommandPermission
One command permission: allows or denies a command for a role, user or channel.
GuildCommandPermissions
The permissions of an app’s command(s) in a guild.
IntegerOption
An integer option.
NumberOption
A number (double) option.
OptionInfo
The fields every CommandOption has, as returned by CommandOption::common.
StringOption
A string option.
SubCommandOption
A subcommand or a subcommand group.
UnknownOption
An option of a type this version of the library does not know about; the fields every option has are kept.

Enums§

CommandOption
An option (parameter) of a slash command, one variant per option type (D-069).
CommandOptionType
The type of a command option.
CommandPermissionType
What a command permission applies to.
CommandType
The type of an application command.
EntryPointHandlerType
Who handles a primary entry point command.