mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 00:32:03 +00:00
Fix Recommended Shards (#1672)
This commit is contained in:
parent
c0e9ce2a1d
commit
e50bf2cdad
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class Util {
|
||||||
static fetchRecommendedShards(token, guildsPerShard = 1000) {
|
static fetchRecommendedShards(token, guildsPerShard = 1000) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (!token) throw new Error('TOKEN_MISSING');
|
if (!token) throw new Error('TOKEN_MISSING');
|
||||||
snekfetch.get(`${ConstantsHttp.host}/api/v${ConstantsHttp.version}${Constants.Endpoints.botGateway}`)
|
snekfetch.get(`${ConstantsHttp.api}/v${ConstantsHttp.version}${Constants.Endpoints.botGateway}`)
|
||||||
.set('Authorization', `Bot ${token.replace(/^Bot\s*/i, '')}`)
|
.set('Authorization', `Bot ${token.replace(/^Bot\s*/i, '')}`)
|
||||||
.end((err, res) => {
|
.end((err, res) => {
|
||||||
if (err) reject(err);
|
if (err) reject(err);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue