Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
Public Attributes | List of all members
discord_session Struct Reference

#include <discord.h>

Public Attributes

char url [1024]
 The WSS URL that can be used for connecting to the gateway.
 
int shards
 The recommended number of shards to use when connecting.
 
int total
 the total number of session starts the current user is allowed
 
int remaining
 the remaining number of session starts the current user is allowed
 
int reset_after
 the number of milliseconds after which the limit resets
 
int max_concurrency
 the number of identify requests allowed per 5 seconds
 
int concurrent
 active concurrent sessions
 
u64_unix_ms_t identify_tstamp
 timestamp of last succesful identify request
 
u64_unix_ms_t event_tstamp
 timestamp of last succesful event timestamp in ms (resets every 60s)
 
int event_count
 event counter to avoid reaching limit of 120 events per 60 sec
 

Detailed Description

Todo:
make this specs generated code
See also
https://discord.com/developers/docs/topics/gateway#get-gateway-bot-json-response
https://discord.com/developers/docs/topics/gateway#session-start-limit-object

The documentation for this struct was generated from the following file: