Reorganise disabledEvents stuff

This commit is contained in:
Schuyler Cebulskie
2016-10-09 14:41:57 -04:00
parent 7b571f9729
commit dabe51fc8d
3 changed files with 9 additions and 13 deletions

View File

@@ -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}