#Event

implements IEvent

Creates a event.

Properties
Methods

#Import

import { Event } from 'discordkit';

#Constructor

new Event({ name: keyof ClientEvents, // from discord.js type: EventType, // check enums run: (bot: Bot, ...args: any) => Promise<any> | any });

#Properties

The name of the event.
Type: keyof ClientEvents


Will the event run once or every time?
Type: EventType


#Methods

It runs when the event is triggered.

ParameterTypeDescription
botBotExtended Discord.js client.
...argsanyAny Arg

Returns: Promise<any> | any