mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(WebSocketShard): emit errors directly instead of objects (#8406)
This commit is contained in:
@@ -455,7 +455,7 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
|
||||
}
|
||||
|
||||
private onError(err: Error) {
|
||||
this.emit('error', { err });
|
||||
this.emit('error', err);
|
||||
}
|
||||
|
||||
private async onClose(code: number) {
|
||||
|
||||
Reference in New Issue
Block a user