mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
Emit error instead of console.log
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -191,7 +191,12 @@ class WebSocketManager {
|
|||||||
* @returns {null}
|
* @returns {null}
|
||||||
*/
|
*/
|
||||||
eventError(e) {
|
eventError(e) {
|
||||||
console.log(e);
|
/**
|
||||||
|
* Emitted whenever the Client encounters a serious connection error
|
||||||
|
* @event Client#error
|
||||||
|
* @param {Error} error the encountered error
|
||||||
|
*/
|
||||||
|
this.client.emit('error', e);
|
||||||
this.tryReconnect();
|
this.tryReconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user