DefaultApplicationCommandRegistry
Registry for all Discord application commands.
Properties
Command parser to use for slash commands.
Current instance of the bot.
Whether the initial sync has been finished, and commands should be registered directly.
Mapping of Discord-side command ID to a message command object.
Mapping of Discord-side command ID to a slash command object.
Mapping of Discord-side command ID to a user command object.
Functions
Creates a KordEx ApplicationCommand as discord command and returns the created command's id as Snowflake.
Creates a KordEx MessageCommand as discord command and returns the created command's id as Snowflake.
Creates a KordEx SlashCommand as discord command and returns the created command's id as Snowflake.
Creates a KordEx UserCommand as discord command and returns the created command's id as Snowflake.
Event handler for autocomplete interactions.
Event handler for slash commands.
Event handler for message commands.
Event handler for user commands.
Called once the initial registration started and all extensions are loaded.
Handles the initial registration of commands, after extensions have been loaded.
Check whether the type and name of an extension-registered application command matches a Discord one.
Registration logic for slash commands, extracted for clarity.
Registration logic for message commands, extracted for clarity.
Registration logic for user commands, extracted for clarity.
Register a message command.
Register a slash command.
Register a user command.
Register multiple slash commands.
Registers the global permissions of command.
Registers the guild permission of command.
Register multiple generic application commands.
Register multiple generic application commands.
Unregister a message command.
Unregister a slash command.
Unregister a user command.
Unregister a generic ApplicationCommand.