|
Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <gateway.h>
Data Fields | |
| u64snowflake | guild_id |
| struct snowflakes * | roles |
| struct discord_user * | user |
| char * | nick |
| char * | avatar |
| u64unix_ms | joined_at |
| u64unix_ms | premium_since |
| bool | deaf |
| bool | mute |
| bool | pending |
| u64unix_ms | communication_disabled_until |
Public methods
discord_guild_member_update_from_json(const char json[], size_t len, struct discord_guild_member_update *this)discord_guild_member_update_from_jsmnf(jsmnf *root, const char json[], struct discord_guild_member_update *this)discord_guild_member_update_to_json(char buf[], size_t size, const struct discord_guild_member_update *this)discord_guild_member_update_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_member_update *this) | u64snowflake discord_guild_member_update::guild_id |
id of the guild
| struct snowflakes* discord_guild_member_update::roles |
user role ids
| struct discord_user* discord_guild_member_update::user |
the user
| char* discord_guild_member_update::nick |
nickname of the user in the guild
| char* discord_guild_member_update::avatar |
the member's guild avatar hash
| u64unix_ms discord_guild_member_update::joined_at |
when the user joined the guild
| u64unix_ms discord_guild_member_update::premium_since |
when the user started boosting the guild
| bool discord_guild_member_update::deaf |
whether the user is deafened in voice channels
| bool discord_guild_member_update::mute |
whether the user is muted in voice channels
| bool discord_guild_member_update::pending |
whether the user has not yet passed the guild's Membership Screening requirements
| u64unix_ms discord_guild_member_update::communication_disabled_until |
when the user's timeout will expire and the user will be able to communicate in the guild again, NULL or a time in the past if the user is not timed out