mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 22:51:32 +00:00
Webpack build for branch master: 22e8237bf1
This commit is contained in:
parent
5cdc8b246f
commit
3f5857b993
2 changed files with 3 additions and 2 deletions
|
|
@ -206,6 +206,7 @@ exports.Endpoints = {
|
|||
};
|
||||
},
|
||||
invite: code => `https://discord.gg/${code}`,
|
||||
botGateway: '/gateway/bot',
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -1079,7 +1080,7 @@ class Util {
|
|||
static fetchRecommendedShards(token, guildsPerShard = 1000) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!token) throw new Error('A token must be provided.');
|
||||
snekfetch.get(`${ConstantsHttp.host}/api/v${ConstantsHttp.version}${Constants.Endpoints.gateway.bot}`)
|
||||
snekfetch.get(`${ConstantsHttp.host}/api/v${ConstantsHttp.version}${Constants.Endpoints.botGateway}`)
|
||||
.set('Authorization', `Bot ${token.replace(/^Bot\s*/i, '')}`)
|
||||
.end((err, res) => {
|
||||
if (err) reject(err);
|
||||
|
|
|
|||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue