|
Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <guild.h>
Data Fields | |
| char * | reason |
| char * | name |
| enum discord_channel_types | type |
| char * | topic |
| int | bitrate |
| int | user_limit |
| int | rate_limit_per_user |
| int | position |
| struct discord_overwrites * | permission_overwrites |
| u64snowflake | parent_id |
| bool | nsfw |
Public methods
discord_create_guild_channel_from_json(const char json[], size_t len, struct discord_create_guild_channel *this)discord_create_guild_channel_from_jsmnf(jsmnf *root, const char json[], struct discord_create_guild_channel *this)| char* discord_create_guild_channel::reason |
| reason | a reason to indicate why the action was taken |
| char* discord_create_guild_channel::name |
channel name (1-100 characters)
| enum discord_channel_types discord_create_guild_channel::type |
the type of channel
| char* discord_create_guild_channel::topic |
channel topic (0-1024 characters)
| int discord_create_guild_channel::bitrate |
the bitrate (in bits) of the voice channel (voice only)
| int discord_create_guild_channel::user_limit |
the user limit of the voice channel (voice only)
| int discord_create_guild_channel::rate_limit_per_user |
amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission MANAGE_MESSAGES or MANAGE_CHANNEL, are unaffected
| int discord_create_guild_channel::position |
sorting position of the channel
| struct discord_overwrites* discord_create_guild_channel::permission_overwrites |
the channel's permission overwrites
| u64snowflake discord_create_guild_channel::parent_id |
ID of the parent category for a channel
| bool discord_create_guild_channel::nsfw |
whether the channel is nsfw