Errors#
BotMissingPermissionsError
#
BotMissingPermissionsError(missing_permissions: Permissions, *args: Any)
Bases: HookAbortError
Raised when a command is invoked and the bot is missing the
required permissions set by a bot_has_permissions
hook.
ATTRIBUTE | DESCRIPTION |
---|---|
missing_permissions |
The permissions that the bot is missing.
TYPE:
|
CommandPublishFailedError
#
Bases: ArcError
Raised when a set of commands could not be published to Discord.
DMOnlyError
#
Bases: HookAbortError
Raised when a command is invoked outside of a DM and a
dm_only
hook is present.
ExtensionLoadError
#
Bases: ExtensionError
An error occurred while trying to load an extension.
ExtensionUnloadError
#
Bases: ExtensionError
An error occurred while trying to unload an extension.
GlobalCommandPublishFailedError
#
Bases: CommandPublishFailedError
Raised when a command could not be published to Discord.
GuildCommandPublishFailedError
#
Bases: CommandPublishFailedError
Raised when a set of commands could not be published to a guild.
ATTRIBUTE | DESCRIPTION |
---|---|
guild_id |
The guild that commands could not be published to.
TYPE:
|
GuildOnlyError
#
Bases: HookAbortError
Raised when a command is invoked outside of a guild and a
guild_only
hook is present.
InvokerMissingPermissionsError
#
InvokerMissingPermissionsError(missing_permissions: Permissions, *args: Any)
Bases: HookAbortError
Raised when a command is invoked by a user without the
required permissions set by a has_permissions
hook.
ATTRIBUTE | DESCRIPTION |
---|---|
missing_permissions |
The permissions that the invoker is missing.
TYPE:
|
MaxConcurrencyReachedError
#
MaxConcurrencyReachedError(
limiter: ConcurrencyLimiterProto[Any], max_concurrency: int, *args: Any
)
Bases: ArcError
Raised when a built-in concurrency limiter is acquired while it is exhausted.
ATTRIBUTE | DESCRIPTION |
---|---|
limiter |
The limiter that was exhausted.
TYPE:
|
max_concurrency |
The maximum amount of concurrent instances of the command that reached max concurrency.
TYPE:
|
NoResponseIssuedError
#
Bases: InteractionResponseError
Raised when no response was issued by a command. Interactions must be responded to or deferred within 3 seconds to avoid this error.
arc
tries to automatically defer responses when possible, so this error should rarely occur, unless autodefer is disabled.
NotOwnerError
#
Bases: HookAbortError
Raised when a command is invoked by a non-owner and a
owner_only
hook is present.
OptionConverterFailureError
#
Bases: ArcError
Raised when an option converter fails to convert a value.
ATTRIBUTE | DESCRIPTION |
---|---|
option |
The option that failed to convert the value.
TYPE:
|
value |
The value that failed to be converted.
TYPE:
|
ResponseAlreadyIssuedError
#
Bases: InteractionResponseError
Raised when a response was already issued to an interaction. Interactions can only be issued one initial response, every other response should be a followup.
Note that certain actions can only be done in an initial response, such as sending modals or builders.
UnderCooldownError
#
UnderCooldownError(limiter: LimiterProto[Any], retry_after: float, *args: Any)
Bases: ArcError
Raised when a built-in ratelimiter is acquired while it is exhausted, and the
wait
parameter is set to False
.
ATTRIBUTE | DESCRIPTION |
---|---|
limiter |
The limiter that was rate limited.
TYPE:
|
retry_after |
The amount of time in seconds until the command is off cooldown.
TYPE:
|