Extension
Class representing a distinct set of functionality to be treated as a unit.
Override this and create your own extensions with their own event handlers and commands. This will allow you to keep distinct blocks of functionality separate, keeping the codebase clean and configurable.
Inheritors
Properties
Whether ApplicationCommands should be allowed in DMs by default.
Slash command registry.
The ExtensibleBot instance that this extension is installed to.
List of chat command checks.
Message command registry.
List of registered commands.
List of registered event handlers.
Set of intents required by this extension's event handlers and commands.
Check whether this extension's state is ExtensionState.LOADED.
List of message command checks.
List of registered slash commands.
List of slash command checks.
List of registered slash commands.
The current loading/unloading state of the extension.
List of user command checks.
List of registered slash commands.
Functions
Function for registering a custom command object.
DSL function for easily registering a command, without arguments.
DSL function for easily registering a command.
Define a check which must pass for the command to be executed. This check will be applied to all commands in this extension.
Overloaded check function to allow for DSL syntax.
DSL function for easily registering a grouped command, without its own arguments.
DSL function for easily registering a grouped command.
Register a custom instance of an ephemeral message command.
Register an ephemeral message command, DSL-style.
Function for registering a custom ephemeral slash command object.
DSL function for easily registering an ephemeral slash command, without arguments.
DSL function for easily registering an ephemeral slash command, with arguments.
DSL function for easily registering an ephemeral slash command, with a modal form.
Register a custom instance of an ephemeral user command.
Register an ephemeral user command, DSL-style.
DSL function for easily registering an event handler.
Define a check which must pass for a message command to be executed. This check will be applied to all message commands in this extension.
Overloaded message command check function to allow for DSL syntax.
Register a custom instance of a public message command.
Register a public message command, DSL-style.
Function for registering a custom public slash command object.
DSL function for easily registering a public slash command, without arguments.
DSL function for easily registering a public slash command, with arguments.
DSL function for easily registering a public slash command, with a modal form.
DSL function for easily registering a public slash command, with arguments and a modal form.
Register a custom instance of a public user command.
Register a public user command, DSL-style.
Update this extension's state, firing the extension state change event.
Define a check which must pass for a slash command to be executed. This check will be applied to all slash commands in this extension.
Overloaded slash command check function to allow for DSL syntax.
Define a check which must pass for a user command to be executed. This check will be applied to all user commands in this extension.
Overloaded user command check function to allow for DSL syntax.