Constructor
new Event(client, manager, data)
The constructor of the event class.
Parameters:
Name | Type | Description |
---|---|---|
client | Client | The client |
manager | EventManager | The event manager |
data | EventData | The data of the event |
- Source
Members
client :Client
The client.
Type:
- Client
- Source
enabled
If the event is enabled for loading or not.
- Source
location
Gets the location of the event.
- Source
location
Sets the location of the event.
- Source
manager :EventManager
The event manager.
Type:
- Source
name
The name of the event.
- Source
once
If the event is once or not.
- Source
Methods
load() → {Promise.<(Boolean|DisGroupDevError)>}
Loads the event.
- Source
Returns:
- Type:
- Promise.
<(Boolean| DisGroupDevError)>
reload() → {Promise.<(Boolean|DisGroupDevError)>}
Reloads the event.
- Source
Returns:
- Type:
- Promise.
<(Boolean| DisGroupDevError)>
toJSON() → {EventData}
The full data of the event
- Source
Returns:
- Type:
- EventData
unload() → {Promise.<(Boolean|DisGroupDevError)>}
Unloads the event.
- Source
Returns:
- Type:
- Promise.
<(Boolean| DisGroupDevError)>