Skip to content

Events#

ArcEvent #

Bases: Event

Base class for all Arc events.

CommandErrorEvent #

CommandErrorEvent(
    client: GatewayClientT,
    context: Context[GatewayClientT],
    exception: Exception,
)

Bases: ArcEvent, Generic[GatewayClientT]

Event dispatched when a command raises an exception that is not handled by any error handlers.

Warning

Creating any listeners for this event will disable the client error handler completely.

app property #

app: RESTAware

App instance for this application.

client property #

client: GatewayClientT

The client instance that raised the exception.

context property #

context: Context[GatewayClientT]

The invocation context that raised the exception.

exception property #

exception: Exception

The exception that was raised.

StartedEvent #

StartedEvent(client: GatewayClientT)

Bases: ArcEvent, Generic[GatewayClientT]

Event dispatched when the client has started.

This is notably different from hikari's StartedEvent because it fires after all command syncing was completed and the client has finished its startup process.

app property #

app: RESTAware

App instance for this application.

client property #

client: GatewayClientT

The client instance that started.

StoppingEvent #

StoppingEvent(client: GatewayClientT)

Bases: ArcEvent, Generic[GatewayClientT]

Event dispatched when the client is stopping.

This event is fired after the shutdown hook has been processed.

app property #

app: RESTAware

App instance for this application.

client property #

client: GatewayClientT

The client instance that is stopping.