İçeriğe geç
sern

discordEvent

discordEvent<T>(mod): Module

Create event modules from discord.js client events, This is an eventModule for discord events, where typings can be very bad.

Type parameters

T extends keyof ClientEvents

Parameters

mod

mod.execute

mod.name: T

mod.once?: boolean

Returns

Module

Source

src/core/modules.ts:42