Crate serenity_commands
source ·Expand description
A library for intuitively creating commands for use with the serenity
Discord library.
Enums
- An error which can occur when extracting data from a command interaction.
Traits
- A top-level command for use with
CommandData
. The command may contain regular options, sub-commands, and sub-command groups. - A top-level utility structure which can list all of its commands (for use with
GuildId::set_commands
, etc.) and extract data fromCommandInteraction
s. - A sub-command or sub-command group which can be nested within other
CommandOption
s orCommand
s.
Type Aliases
- A type alias for
Result
s which use [Error
] as the error type.
Derive Macros
- Derive the
Command
trait. - Derive the
CommandData
trait. - Derive the
CommandOption
trait.