Move and improve debug/warn docs

This commit is contained in:
Schuyler Cebulskie
2016-09-19 05:11:35 -04:00
parent 6a94658dd7
commit 47d873a8ca
4 changed files with 13 additions and 9 deletions

View File

@@ -234,10 +234,6 @@ class WebSocketManager {
if (this.client.options.fetch_all_members) {
const promises = this.client.guilds.array().map(g => g.fetchMembers());
Promise.all(promises).then(() => this._emitReady()).catch(e => {
/**
* Emitted when there is a warning
* @event Client#warn
*/
this.client.emit(Constants.Event.WARN, `Error on pre-ready guild member fetching - ${e}`);
this._emitReady();
});