This commit is contained in:
Travis CI 2016-12-17 18:23:33 +00:00
parent 309dffc460
commit d81437615e
2 changed files with 8 additions and 6 deletions

View file

@ -138,6 +138,7 @@ exports.Errors = {
INVALID_RATE_LIMIT_METHOD: 'Unknown rate limiting method.',
BAD_LOGIN: 'Incorrect login details were provided.',
INVALID_SHARD: 'Invalid shard settings were provided.',
INVALID_TOKEN: 'An invalid token was provided.',
};
const PROTOCOL_VERSION = exports.PROTOCOL_VERSION = 6;
@ -20242,6 +20243,7 @@ class RESTMethods {
login(token = this.rest.client.token) {
return new Promise((resolve, reject) => {
if (typeof token !== 'string') throw new Error(Constants.Errors.INVALID_TOKEN);
token = token.replace(/^Bot\s*/i, '');
this.rest.client.manager.connectToWebSocket(token, resolve, reject);
});

12
discord.indev.min.js vendored

File diff suppressed because one or more lines are too long