ApplicationCommandsBuilder

Builder used for configuring the bot's application command options.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var defaultGuild: Snowflake?

The guild ID to use for all global application commands. Intended for testing.

Link copied to clipboard

Whether to register and process application commands. Defaults to true.

Link copied to clipboard

List of message command checks.

Link copied to clipboard

Whether to attempt to register the bot's application commands. Intended for multi-instance sharded bots.

Link copied to clipboard

List of slash command checks.

Link copied to clipboard

List of user command checks.

Functions

Link copied to clipboard

Register the builder used to create the ApplicationCommandRegistry. You can change this if you need to make use of a subclass.

Link copied to clipboard
fun defaultGuild(id: Snowflake?)

Set a guild ID to use for all global application commands. Intended for testing.

Link copied to clipboard

Define a check which must pass for a message command to be executed. This check will be applied to all message commands.

Overloaded message command check function to allow for DSL syntax.

Link copied to clipboard

Define a check which must pass for a slash command to be executed. This check will be applied to all slash commands.

Overloaded slash command check function to allow for DSL syntax.

Link copied to clipboard

Define a check which must pass for a user command to be executed. This check will be applied to all user commands.

Overloaded user command check function to allow for DSL syntax.