Get Gateway Bot#
-
ORCAcode discord_get_gateway_bot(struct discord *client, struct sized_buffer *ret)#
Get a single valid WSS URL, and additional metadata that can help during the operation of large bots.
Note
This route should not be cached for extended periods of time as the value is not guaranteed to be the same per-call, and changes as the bot joins/leaves guilds
- Parameters:
client – the client created with discord_init()
ret – if successful, a sized_buffer containing the JSON response
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary