Concord - C Discord API library
A Discord API wrapper library written in C
|
The handle for storing the Discord Gateway session. More...
#include <discord-internal.h>
Data Fields | |
bool | is_ready |
char | id [64] |
int | shards |
char | base_url [256] |
char | resume_url [256] |
struct discord_session_start_limit | start_limit |
int | concurrent |
int | event_count |
unsigned | status |
struct { | |
bool enable | |
int attempt | |
int limit | |
} | retry |
The handle for storing the Discord Gateway session.
bool discord_gateway_session::is_ready |
whether client is ready to start sending/receiving events
char discord_gateway_session::id[64] |
session id for resuming lost connections
int discord_gateway_session::shards |
amount of shards being used by this session
char discord_gateway_session::base_url[256] |
the session base url
char discord_gateway_session::resume_url[256] |
the base url for resuming
struct discord_session_start_limit discord_gateway_session::start_limit |
session limits
int discord_gateway_session::concurrent |
active concurrent sessions
int discord_gateway_session::event_count |
event counter to avoid reaching limit of 120 events per 60 sec
unsigned discord_gateway_session::status |
bool discord_gateway_session::enable |
will attempt reconnecting if true
int discord_gateway_session::attempt |
current retry attempt (resets to 0 when succesful)
int discord_gateway_session::limit |
max amount of retries before giving up
struct { ... } discord_gateway_session::retry |
retry connection structure