Concord - C Discord API library
A Discord API wrapper library written in C
discord_guild_member Struct Reference

#include <guild.h>

Collaboration diagram for discord_guild_member:
[legend]

Data Fields

struct discord_useruser
 
char * nick
 
char * avatar
 
struct snowflakesroles
 
u64unix_ms joined_at
 
u64unix_ms premium_since
 
bool deaf
 
bool muted
 
bool pending
 
u64bitmask permissions
 
u64unix_ms communication_disabled_until
 
u64snowflake guild_id
 

Detailed Description

Field Documentation

◆ user

struct discord_user* discord_guild_member::user

the user this guild member represents

Examples
audit-log.c, fetch-messages.c, guild.c, and slash-commands.c.

◆ nick

char* discord_guild_member::nick

this user's guild nickname

Examples
fetch-messages.c.

◆ avatar

char* discord_guild_member::avatar

the member's guild avatar hash

◆ roles

struct snowflakes* discord_guild_member::roles

array of role object IDs

◆ joined_at

u64unix_ms discord_guild_member::joined_at

when the user joined the guild

◆ premium_since

u64unix_ms discord_guild_member::premium_since

when the user started boosting the guild

◆ deaf

bool discord_guild_member::deaf

whether the user is deafened in voice channels

◆ muted

bool discord_guild_member::muted

whether the user is muted in voice channels

◆ pending

bool discord_guild_member::pending

whether the user has not yet passed the guild's Membership Screening requirements

◆ permissions

u64bitmask discord_guild_member::permissions

total permission of the member in the channel, including overwrites, returned when in the interaction object

◆ communication_disabled_until

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

◆ guild_id

u64snowflake discord_guild_member::guild_id

the guild id

Note
extra field for Guild Member Add event
Examples
audit-log.c.

The documentation for this struct was generated from the following file: