mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Move and improve debug/warn docs
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user