Skip to content
On this page

Event

Represents an event.

Constructor

js
new Event(client, 'ready', options);
NameTypeDescriptionDefaultOptional
clientShewenyClientThe client.NoneNo
nameStringThe name of the eventNoneNo
optionsEventOptionsThe options of the eventNoneNo
Properties
Methods

Properties

client

The framework client.

Return : ShewenyClient

description

The description of the event.

Return : String

emitter

The emitter of the event.

Return : EventEmitter

manager

The manager of this structure.

Return : EventsManager

name

The name of the event.

Return : String

once

If the event is emitted juste once or not.

Return : Boolean

path

The path of the file.

Return : String

Methods

client

The framework client.

Return : ShewenyClient

description

The description of the event.

Return : String

emitter

If the event is emitted juste once or not.

Return : EventEmitter

manager

The manager of this structure.

Return : EventsManager

name

The name of the event.

Return : String

once

If the event is emitted juste once or not.

Return : Boolean

path

The path of the file.

Return : String PS D:\Development\Projects\Sheweny\website> node .\sort-content.js

before()

Executed before event checks.

Parameters :

NameTypeDescription
...argsargs EventsArgs for events

Return : Promise<any> | any

[abstract] execute()

The execution of event.

Parameters :

NameTypeDescription
...argsargs EventsArgs for events

Return : Promise<any> | any

[async] register()

Register the event.

Return : Promise<Event> | Null

[async] reload()

Reload a event of bot.

Return : Promise<Event> | Null

unregister()

Unregister a event from the bot.

Return : Boolean