pub struct CreateGuildCommand<'a> { /* private fields */ }
Expand description

Create a new command in a guild.

Implementations

Create a chat input command in a guild.

The command name must only contain alphanumeric characters and lowercase variants must be used where possible. Special characters - and _ are allowed. The description must be between 1 and 100 characters in length.

Creating a guild command with the same name as an already-existing guild command in the same guild will overwrite the old command. See Discord Docs/Create Guild Application Command.

Errors

Returns an error of type NameLengthInvalid or NameCharacterInvalid if the command name is invalid.

Returns an error of type DescriptionInvalid error type if the command description is not between 1 and 100 characters.

Create a message command in a guild.

Creating a guild command with the same name as an already-existing guild command in the same guild will overwrite the old command. See Discord Docs/Create Guild Application Command.

Errors

Returns an error of type NameLengthInvalid if the command name is not between 1 and 32 characters.

Create a user command in a guild.

Creating a guild command with the same name as an already-existing guild command in the same guild will overwrite the old command. See Discord Docs/Create Guild Application Command.

Errors

Returns an error of type NameLengthInvalid if the command name is not between 1 and 32 characters.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more