Skip to content

~.factory

Factory

EventFactory

EventFactory(bot: hikari.GatewayBot)

Responsible for emitting and handling all supplemental events.

Create a new event factory.

PARAMETER DESCRIPTION
bot

The OAuth2 bot to use for dispatching events.

TYPE: hikari.GatewayBot

emit

emit(event: type[WaveEventType], **kwargs: Any) -> None

Dispatch an event.

PARAMETER DESCRIPTION
event

The hikari-wave event to dispatch.

TYPE: type[WaveEvent]

kwargs

The key-value pairs of data to send directly to the event constructor.

TYPE: Any DEFAULT: {}