Expand description

Constants, error types, and functions for validating Commands.

Structs

Error created when a Command is invalid.

Enums

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 a Command.

Validate the description of a Command.

Validate the number of guild command permission overwrites.

Validate the name of a User or Message command.

Validate a single CommandOption.

Validate the name of a CommandOption.

Validate a list of command options for count, order, and internal validity.