Skip to content

Events

AurumEvent #

Bases: Event, abc.ABC

The base class for all Aurum's events.

app class-attribute instance-attribute #
app: RESTAware = attrs.field()

Instance of main application.

client class-attribute instance-attribute #
client: Client = attrs.field()

Client.

CommandErrorEvent #

Bases: InteractionEvent, abc.ABC

Event that being dispatched, when command execution has exceptions.

app class-attribute instance-attribute #
app: RESTAware = attrs.field()

Instance of main application.

client class-attribute instance-attribute #
client: Client = attrs.field()

Client.

command instance-attribute #
command: AppCommand

Command with that occurred exception.

context class-attribute instance-attribute #
context: InteractionContext | None = attrs.field(default=None)

Context of interaction.

exc_info instance-attribute #

Exception triplet.

exception instance-attribute #
exception: Exception

Exception that was raised.

interaction instance-attribute #
interaction: PartialInteraction

Interaction of event.

ExceptionEvent #

Bases: AurumEvent, abc.ABC

Base class of events, that associated with exceptions.

app class-attribute instance-attribute #
app: RESTAware = attrs.field()

Instance of main application.

client class-attribute instance-attribute #
client: Client = attrs.field()

Client.

exc_info instance-attribute #

Exception triplet.

exception instance-attribute #
exception: Exception

Exception that was raised.

InteractionEvent #

Bases: ExceptionEvent, abc.ABC

app class-attribute instance-attribute #
app: RESTAware = attrs.field()

Instance of main application.

client class-attribute instance-attribute #
client: Client = attrs.field()

Client.

context class-attribute instance-attribute #
context: InteractionContext | None = attrs.field(default=None)

Context of interaction.

exc_info instance-attribute #

Exception triplet.

exception instance-attribute #
exception: Exception

Exception that was raised.

interaction instance-attribute #
interaction: PartialInteraction

Interaction of event.