docs: restore Client#error docs that went missing

This commit is contained in:
Lewdcario
2018-11-06 14:59:02 -06:00
parent 6b886b0aba
commit 3418b5a1a2

View File

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