mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 13:32:04 +00:00
Fix #1685
This commit is contained in:
parent
84153be894
commit
5a3b59b4b0
1 changed files with 1 additions and 1 deletions
|
|
@ -287,7 +287,7 @@ class Client extends EventEmitter {
|
|||
if (typeof token !== 'string') throw new Error('TOKEN_INVALID');
|
||||
token = token.replace(/^Bot\s*/i, '');
|
||||
this.manager.connectToWebSocket(token, resolve, reject);
|
||||
});
|
||||
}).catch(() => this.destroy());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue