glyde/api/gateway_info

Three gateway URLs exist and mixing them up is a standing bug:

Values

pub fn get_gateway() -> rest.Call(gateway_info.GatewayInfo)

GET /gateway, the WebSocket URL and nothing else. The one route here that needs no token, and sending the bot’s anyway is harmless, so this goes through the same rest.Config as everything else.

pub fn get_gateway_bot() -> rest.Call(gateway_info.GatewayBot)

GET /gateway/bot, the URL plus the recommended shard count and how many shards may identify in the same five-second window. A guessed shard count closes the socket 4010 or 4011, neither of which a reconnect fixes. Identifying past max_concurrency costs an INVALID_SESSION instead, which is why the answer feeds gateway_info.identify_queue.

Search Document