|
Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <guild.h>
Data Fields | |
| struct discord_user * | user |
| char * | nick |
| char * | avatar |
| struct snowflakes * | roles |
| u64unix_ms | joined_at |
| u64unix_ms | premium_since |
| bool | deaf |
| bool | muted |
| bool | pending |
| u64bitmask | permissions |
| u64unix_ms | communication_disabled_until |
| u64snowflake | guild_id |
Public methods
discord_guild_member_from_json(const char json[], size_t len, struct discord_guild_member *this)discord_guild_member_from_jsmnf(jsmnf *root, const char json[], struct discord_guild_member *this)| struct discord_user* discord_guild_member::user |
the user this guild member represents
| char* discord_guild_member::nick |
this user's guild nickname
| char* discord_guild_member::avatar |
the member's guild avatar hash
| struct snowflakes* discord_guild_member::roles |
array of role object IDs
| u64unix_ms discord_guild_member::joined_at |
when the user joined the guild
| u64unix_ms discord_guild_member::premium_since |
when the user started boosting the guild
| bool discord_guild_member::deaf |
whether the user is deafened in voice channels
| bool discord_guild_member::muted |
whether the user is muted in voice channels
| bool discord_guild_member::pending |
whether the user has not yet passed the guild's Membership Screening requirements
| u64bitmask discord_guild_member::permissions |
total permission of the member in the channel, including overwrites, returned when in the interaction object
| u64unix_ms discord_guild_member::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
| u64snowflake discord_guild_member::guild_id |