mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Reorganise disabledEvents stuff
This commit is contained in:
@@ -41,13 +41,6 @@ class Client extends EventEmitter {
|
||||
throw new TypeError('The disabledEvents client option must be an array.');
|
||||
}
|
||||
|
||||
let disabledEvents = {};
|
||||
for (const event in this.options.disabledEvents) {
|
||||
disabledEvents[event] = true;
|
||||
}
|
||||
|
||||
this.options.disabledEvents = disabledEvents;
|
||||
|
||||
/**
|
||||
* The REST manager of the client
|
||||
* @type {RESTManager}
|
||||
|
||||
Reference in New Issue
Block a user