CommandScope

Defines the scope on which an application command is pushed to.

Entries

Link copied to clipboard

The guild command scope, making the application command accessible on a per-guild basis. These commands can only be executed in the guild they are pushed to.

Link copied to clipboard

The global command scope, making the application command be accessible in the interaction contexts set on the command.

Functions

Link copied to clipboard
open fun valueOf(name: String): CommandScope

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.