mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 19:50:55 +00:00
Webpack build for branch 11.3-dev: a667e44c4d
This commit is contained in:
parent
54b7787421
commit
827465c741
2 changed files with 5 additions and 6 deletions
|
|
@ -18021,11 +18021,10 @@ class RESTMethods {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (!token || typeof token !== 'string') throw new Error(Constants.Errors.INVALID_TOKEN);
|
if (!token || typeof token !== 'string') throw new Error(Constants.Errors.INVALID_TOKEN);
|
||||||
token = token.replace(/^Bot\s*/i, '');
|
token = token.replace(/^Bot\s*/i, '');
|
||||||
this.client.manager.connectToWebSocket(token, resolve, reject)
|
this.client.manager.connectToWebSocket(token, resolve, reject);
|
||||||
.catch(e => {
|
}).catch(e => {
|
||||||
this.client.destroy();
|
this.client.destroy();
|
||||||
return Promise.reject(e);
|
return Promise.reject(e);
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
2
discord.11.3-dev.min.js
vendored
2
discord.11.3-dev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue