CommandDeclarationFilter

A filter determining if an application command needs to be registered.

Needs to be referenced by a @DeclarationFilter.

Usage: Register your instance as a service with @BService or any annotation that enables your class for dependency injection.

See also

@DeclarationFilter

Functions

Link copied to clipboard
abstract fun filter(guild: Guild, path: CommandPath, commandId: String?): Boolean

Returns whether the provided command can be used in the provided guild.