mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Teensy cleanup
This commit is contained in:
@@ -8,7 +8,7 @@ const botGateway = require('./Constants').Endpoints.botGateway;
|
||||
*/
|
||||
module.exports = function getRecommendedShards(token) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!token) reject(new Error('A token must be provided.'));
|
||||
if (!token) throw new Error('A token must be provided.');
|
||||
superagent.get(botGateway)
|
||||
.set('Authorization', `Bot ${token.replace('Bot ', '')}`)
|
||||
.end((err, res) => {
|
||||
|
||||
Reference in New Issue
Block a user