EventHandler
The event handler.
Constructors
new EventHandler()
Creates 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()
Load the events.
Returns
Promise
<(
| EventData
<EventSubConnection
, "ChannelChatClear"
>
| EventData
<EventSubConnection
, "ChannelFollow"
>
| EventData
<EventSubConnection
, "ChannelUpdate"
>
| EventData
<EventSubConnection
, "StreamOnline"
>
| EventData
<EventSubConnection
, "ChannelChatMessage"
>
| EventData
<EventSubConnection
, "ChatBotReady"
>)[]>
The loaded events.