mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
docs: restore Client#error docs that went missing
This commit is contained in:
@@ -303,6 +303,12 @@ class WebSocketShard extends EventEmitter {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.emit(Events.INVALIDATED);
|
this.emit(Events.INVALIDATED);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Emitted whenever the client's WebSocket encounters a connection error.
|
||||||
|
* @event Client#error
|
||||||
|
* @param {Error} error The encountered error
|
||||||
|
*/
|
||||||
this.manager.client.emit(Events.ERROR, error);
|
this.manager.client.emit(Events.ERROR, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user