EventHandler
The event handler.
Constructors
new EventHandler()
1new EventHandler(dir: string): EventHandlerCreates a new instance of the event handler.
Parameters
| Parameter | Type | Description |
|---|---|---|
dir | string | The directory of the events. |
Returns
Source
twitchfy/packages/chatbot/src/structures/EventHandler.ts:18
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
dir | readonly | string | The directory of the events. |
Methods
load()
1load(): Promise<(2 | EventData<EventSubConnection, "ChannelChatClear">3 | EventData<EventSubConnection, "ChannelFollow">4 | EventData<EventSubConnection, "ChannelUpdate">5 | EventData<EventSubConnection, "StreamOnline">6 | EventData<EventSubConnection, "ChannelChatMessage">7 | EventData<EventSubConnection, "StreamOffline">8| EventData<EventSubConnection, "ChatBotReady">)[]>Load the events.
Returns
Promise<(
| EventData<EventSubConnection, "ChannelChatClear">
| EventData<EventSubConnection, "ChannelFollow">
| EventData<EventSubConnection, "ChannelUpdate">
| EventData<EventSubConnection, "StreamOnline">
| EventData<EventSubConnection, "ChannelChatMessage">
| EventData<EventSubConnection, "StreamOffline">
| EventData<EventSubConnection, "ChatBotReady">)[]>
The loaded events.