|
dscrd
Discord C library
|
Discord session. More...
#include <dscrd.h>

Data Fields | |
| char | _name [21] |
| reserved More... | |
| uint8_t | _type |
| void * | c |
| Pointer used internally by rest library, it's casted default to void except in library. More... | |
| unsigned char | api |
| token_type | type |
| Session type, one of token_type_e. More... | |
| char * | token |
| pure token More... | |
| char * | auth_string |
| Authentication header used by rest library. More... | |
| struct DiscordUser_s | me |
| DiscordUser_s structure of current user; equal to DiscordClient::user except it's a data structure. More... | |
| struct DiscordUser_s * | user |
| DiscordUser_s pointer of current user; equal to DiscordClient::me except it's a pointer. More... | |
| unsigned char | user_status |
| current user status, one of dscrd_user_status More... | |
| bool | temporary |
| tells if created DiscordClient is temporary and has to be freed when connected object is freed. More... | |
| short | refc [DSCRD_TYPE_LAST] |
| void * | gateway |
| pointer to DiscordGateway session (if any) More... | |
| int | gateway_flags |
| flags More... | |
Discord session.
You should not access any values except DiscordClient::me / DiscordClient::user and DiscordClient::api
| char _name[21] |
reserved
| uint8_t _type |
| unsigned char api |
Discord API version used in session. You can overwrite this by calling dscrd_overwrite_api before creating session.
| char* auth_string |
Authentication header used by rest library.
| void* c |
Pointer used internally by rest library, it's casted default to void except in library.
| void* gateway |
pointer to DiscordGateway session (if any)
| int gateway_flags |
flags
| struct DiscordUser_s me |
DiscordUser_s structure of current user; equal to DiscordClient::user except it's a data structure.
| short refc[DSCRD_TYPE_LAST] |
| bool temporary |
tells if created DiscordClient is temporary and has to be freed when connected object is freed.
| char* token |
pure token
| token_type type |
Session type, one of token_type_e.
| struct DiscordUser_s* user |
DiscordUser_s pointer of current user; equal to DiscordClient::me except it's a pointer.
| unsigned char user_status |
current user status, one of dscrd_user_status
1.8.13