Event

The event class.

Constructor

new Event(client, manager, data)

The constructor of the event class.

Parameters:
NameTypeDescription
clientClient

The client

managerEventManager

The event manager

dataEventData

The data of the event

Members

client :Client

The client.

Type:
  • Client

enabled

If the event is enabled for loading or not.

location

Gets the location of the event.

location

Sets the location of the event.

manager :EventManager

The event manager.

name

The name of the event.

once

If the event is once or not.

Methods

load() → {Promise.<(Boolean|DisGroupDevError)>}

Loads the event.

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>

reload() → {Promise.<(Boolean|DisGroupDevError)>}

Reloads the event.

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>

toJSON() → {EventData}

The full data of the event

Returns:
Type: 
EventData

unload() → {Promise.<(Boolean|DisGroupDevError)>}

Unloads the event.

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>