implements IEvent
Creates a event.
import { Event } from 'discordkit';
new Event({ name: keyof ClientEvents, // from discord.js type: EventType, // check enums run: (bot: Bot, ...args: any) => Promise<any> | any });
The name of the event. Type: keyof ClientEvents
Will the event run once or every time? Type: EventType
bot
...args
It runs when the event is triggered.
Returns: Promise<any> | any