eventModule
eventModule<
T
>(mod
):Module
Creates an event module for handling Discord.js or custom events.
Type parameters
• T extends keyof ClientEvents
= keyof ClientEvents
Event name from ClientEvents
Parameters
• mod: InputEvent
<T
>
Event module configuration
Returns
Processed event module ready for registration
Since
1.0.0
Throws
If ControlPlugins are used in event modules