type property Null safety

CommandType type
final

The type of the command.

A command's type indicates how it can be invoked; text-only commands can only be executed by sending a text message on Discord and slash commands can only be invoked by executing a slash command on Discord.

Note that a command's type does not influence what type of children a command can have.

Implementation

final CommandType type;