CommandScope

Defines command scopes for application commands.

Entries

Link copied to clipboard

The guild command scope, only pushes application commands to the guilds Can be filtered with @DeclarationFilter. Can be forced with forceGuildCommands and @Test

Link copied to clipboard

The global command scope, pushes this command to the first shard

Link copied to clipboard

The global command scope, but with DMs disabled, pushes this command to the first shard This might be useful to have guild commands but without having to push them on every guild

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun isGuildOnly(): Boolean
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.