Gateway's public API supported by Concord.
More...
Gateway's public API supported by Concord.
◆ discord_get_gateway()
Get a single valid WSS URL, which the client can use for connecting.
- Note
- This route should be cached, and only call the function again if unable to properly establishing a connection with the cached version
- Warning
- This function blocks the running thread
- Parameters
-
client | the client created with discord_init() |
ret | if successful, a ccord_szbuf containing the JSON response |
ret | a sized buffer containing the response JSON |
- Returns
- CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary
◆ discord_get_gateway_bot()
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
- Warning
- This function blocks the running thread
- Parameters
-
client | the client created with discord_init() |
ret | if successful, a ccord_szbuf containing the JSON response |
ret | a sized buffer containing the response JSON |
- Returns
- CCORDcode value for how the operation went, CCORD_OK means nothing out of the ordinary