abc

class AbstractCommandErrorHandler[source]

Bases: ABC

An abstract command error handler.

abstract async handle_app_command_error(interaction, error)[source]

Handle error raised in the context of app commands.

Return type:

NoReturn

abstract async handle_text_command_error(context, error)[source]

Handle error raised in the context of text commands.

Return type:

NoReturn

abstract async should_handle_error(error)[source]

A predicate that determines whether the error should be handled.

Return type:

bool