Module twilight_validate::command
source · [−]Expand description
Constants, error types, and functions for validating Command
s.
Structs
Error created when a Command
is invalid.
Enums
Type of CommandValidationError
that occurred.
Constants
Maximum number of choices an option can have.
Maximum length of a command’s description.
Minimum length of a command’s description.
Maximum number of commands an application may have in an individual guild.
Maximum number of permission overwrites an application may have in an individual guild command.
Maximum length of a command’s name.
Minimum length of a command’s name.
Maximum amount of options a command may have.
Maximum length of a command’s description.
Minimum length of a command’s description.
Maximum length of a command’s name.
Minimum length of a command’s name.
Functions
Validate the name of a ChatInput
command.
Validate the description of a Command
.
Validate the number of guild command permission overwrites.
Validate a single CommandOption
.
Validate the name of a CommandOption
.
Validate a list of command options for count, order, and internal validity.