Skip to content

fetchGatewayBot

fetchGatewayBot(token): Promise<GatewayBotInfo>

Defined in: packages/sharding/src/gateway-bot.ts:21

Asks Discord for the recommended shard count and the IDENTIFY budget.

string

Promise<GatewayBotInfo>

If the request fails or the answer is not usable.