|
Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <guild.h>
Data Fields | |
| char * | reason |
| char * | nick |
| struct snowflakes * | roles |
| bool | mute |
| bool | deaf |
| u64snowflake | channel_id |
| u64unix_ms | communication_disabled_until |
Public methods
discord_modify_guild_member_from_json(const char json[], size_t len, struct discord_modify_guild_member *this)discord_modify_guild_member_from_jsmnf(jsmnf *root, const char json[], struct discord_modify_guild_member *this)| char* discord_modify_guild_member::reason |
| reason | a reason to indicate why the action was taken |
| char* discord_modify_guild_member::nick |
value to set user's nickname to
| struct snowflakes* discord_modify_guild_member::roles |
array of role IDs the member is assigned
| bool discord_modify_guild_member::mute |
whether the user is muted in voice channels. will return a CCORD_HTTP_ERROR (400) if the user is not in a voice channel
| bool discord_modify_guild_member::deaf |
whether the user is deafened in voice channels. will return a CCORD_HTTP_ERROR (400) if the user is not in a voice channel
| u64snowflake discord_modify_guild_member::channel_id |
ID of channel to move user to (if they are connect to voice)
| u64unix_ms discord_modify_guild_member::communication_disabled_until |
nullwhen the user's timeout will expire and the user will be able to communicate in the guild again (up to 28 days in the future), set to NULL to remove timeout. Will throw a CCORD_HTTP_ERROR (403) error if the user has the ADMINISTRATOR permission or is the owner of the guild