mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
docs: restore Client#error docs that went missing
This commit is contained in:
parent
6b886b0aba
commit
3418b5a1a2
1 changed files with 6 additions and 0 deletions
|
|
@ -303,6 +303,12 @@ class WebSocketShard extends EventEmitter {
|
|||
return;
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue