CommandList

open class CommandList(source)

Deprecated

Represents a list of enabled commands, the enabled commands are only qualified by their base name. Keep in mind you cannot disable global commands on a per-guild basis.

Deprecated

Replaced by @DeclarationFilter with CommandDeclarationFilter

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun all(): CommandList
Makes a list that enables all of this current guild's commands
Link copied to clipboard
open fun filter(predicate: Predicate<CommandPath>): CommandList
Makes a list that enables current guild's commands if they satisfy the given predicate
Link copied to clipboard
open fun none(): CommandList
Makes a list that disables all of this current guild's commands
Link copied to clipboard
open fun notOf(disabledCommandsStrs: Collection<String>): CommandList
Makes a list of unusable commands (in a Guild context), You have to insert full commands paths such as name group subcommand, which comes from the Discord representation of /name group subcommandThis is constructed by joining each path component with a space Keep in mind you cannot disable global commands on a per-guild basis
Link copied to clipboard
open fun of(enabledCommandsStrs: Collection<String>): CommandList
Makes a list of usable commands (in a Guild context), You have to insert full commands paths such as name group subcommand, which comes from the Discord representation of /name group subcommandThis is constructed by joining each path component with a space Keep in mind you cannot enable global commands on a per-guild basis