Exceptions

The following sections outline the exceptions that can be generated by using any of the methods in the Interactions API.

Exception Hierarchy

Objects

The following exceptions are thrown by the library.

exception discord_tools.app_commands.MissingSKU(skus, *args)[source]

An exception raised when a command invoker is missing a SKU.

skus

The SKUs that are missing. These are the same as the ones provided in has_skus().

Type:

List[Union[discord.abc.Snowflake, str, int]]

exception discord_tools.app_commands.MaxConcurrencyReached(number, per)[source]

An exception raised when a command has reached its max concurrency.

number

The maximum number of concurrent invokers allowed.

Type:

int

per

The bucket type passed to the max_concurrency() decorator.

Type:

BucketType