UserCommand
User context command, for right-click actions on users.
Parameters
Callable returning a ModalForm object, if any
Inheritors
Properties
Whether to allow everyone to use this command by default.
Enables or disables the command in DMs.
Default set of Permissions required to use the command on a guild.
Translation cache, so we don't have to look up translations every time.
Quick access to the command registry.
Permissions required to be able to run this command.
Sentry adapter, for easy access to Sentry functions.
Bot settings object.
Translations provider, for retrieving translations.
Functions
Override this to implement your command's calling logic. Check subtypes for examples!
Define a check which must pass for the command to be executed.
Overloaded check function to allow for DSL syntax.
Checks whether the bot has the specified required permissions, throwing if it doesn't.
Quick shortcut for emitting a command event without blocking.
If enabled, adds the initial Sentry breadcrumb to the given context.
A general way to handle errors thrown during the course of a command's execution.
If your bot requires permissions to be able to execute the command, add them using this function.
This will register a requirement for permissions with Discord.
Override this to implement a way to respond to the user, regardless of whatever happens.
Override this in order to implement any subclass-specific checks.
Runs standard checks that can be handled in a generic way, without worrying about subclass-specific checks.