|
Concord - C Discord API library
A Discord API wrapper library written in C
|
Error codes triggered from Discord. More...
Macros | |
| #define | CCORD_DISCORD_OK CCORD_OK |
| #define | CCORD_PENDING 1 |
| #define | CCORD_DISCORD_JSON_CODE 100 |
| #define | CCORD_DISCORD_BAD_AUTH 101 |
| #define | CCORD_DISCORD_RATELIMIT 102 |
| #define | CCORD_DISCORD_CONNECTION 103 |
Functions | |
| const char * | discord_code_as_string (CCORDcode code) |
| Return the value of CCORDcode as a string. More... | |
| const char * | discord_strerror (CCORDcode code, struct discord *client) |
| Return the meaning of CCORDcode. More... | |
Error codes triggered from Discord.
| #define CCORD_PENDING 1 |
action is pending (ex: request has been enqueued and will be performed later)
| #define CCORD_DISCORD_JSON_CODE 100 |
received a JSON error message
| #define CCORD_DISCORD_BAD_AUTH 101 |
bad authentication token
| #define CCORD_DISCORD_RATELIMIT 102 |
being ratelimited
| #define CCORD_DISCORD_CONNECTION 103 |
couldn't establish connection to Discord
| const char * discord_code_as_string | ( | CCORDcode | code | ) |
Return the value of CCORDcode as a string.
| code | the CCORDcode value |
Return the meaning of CCORDcode.
| code | the CCORDcode value |
| client |