Saltearse al contenido
sern

discordEvent

discordEvent<T>(mod): Module

Create event modules from discord.js client events, This was an eventModule for discord events, where typings were bad.

Type parameters

T extends keyof ClientEvents

Parameters

mod

mod.execute

mod.name: T

mod.once?: boolean

Returns

Module

Source

src/core/modules.ts:43