mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 12:35:53 +00:00
fix typo in ws manager (#1966)
This commit is contained in:
parent
eb591dafba
commit
dca0bac444
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class ClientManager {
|
|||
const gateway = `${res.url}/`;
|
||||
this.client.emit(Events.DEBUG, `Using gateway ${gateway}`);
|
||||
this.client.ws.connect(gateway);
|
||||
this.client.ws.connection.ws.once('error', reject);
|
||||
this.client.ws.connection.once('error', reject);
|
||||
this.client.ws.connection.once('close', event => {
|
||||
if (event.code === 4004) reject(new Error('TOKEN_INVALID'));
|
||||
if (event.code === 4010) reject(new Error('SHARDING_INVALID'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue