Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <guild.h>
Public methods
discord_guild_from_json(const char json[], size_t len, struct discord_guild *this)
discord_guild_from_jsmnf(jsmnf *root, const char json[], struct discord_guild *this)
u64snowflake discord_guild::id |
guild id
char* discord_guild::name |
guild name (2-100 characters, excluding trailing and leading whitespace
char* discord_guild::icon |
icon hash
char* discord_guild::icon_hash |
icon hash, returned when in the template object
char* discord_guild::splash |
splash hash
char* discord_guild::discovery_splash |
discovery splash hash, only present for DISCOVERABLE
guilds
bool discord_guild::owner |
true if the user is the owner of the guild
u64snowflake discord_guild::owner_id |
id of owner
u64bitmask discord_guild::permissions |
total permissions for the user in the guild (excludes overwrites)
u64snowflake discord_guild::afk_channel_id |
id of afk channel
int discord_guild::afk_timeout |
afk timeout in seconds
bool discord_guild::widget_enabled |
true if the server widget is enabled
u64snowflake discord_guild::widget_channel_id |
the channel id the widget will generate an invite to, or NULL if set to no invite
enum discord_verification_level discord_guild::verification_level |
verification level required for the guild
enum discord_message_notification_level discord_guild::default_message_notifications |
default message notifications level
enum discord_explicit_content_filter_level discord_guild::explicit_content_filter |
explicit content filter level
struct discord_roles* discord_guild::roles |
roles in the guilds
struct discord_emojis* discord_guild::emojis |
custom guild emojis
struct strings* discord_guild::features |
enabled guild features
enum discord_mfa_level discord_guild::mfa_level |
required MFA level for the guild
u64snowflake discord_guild::application_id |
application id of the guild creator if it is bot-created
u64snowflake discord_guild::system_channel_id |
the id of the channel where guild notices such as welcome messages and boost events are posted
u64bitmask discord_guild::system_channel_flags |
u64snowflake discord_guild::rules_channel_id |
the id of the channel where Community guilds can display rules and/or guidelines
u64unix_ms discord_guild::joined_at |
when this guild was joined at
bool discord_guild::large |
true if this is considered a large guild
bool discord_guild::unavailable |
true if this guild is unavailable due to an outage
int discord_guild::member_count |
total number of members in this guild
struct discord_voice_states* discord_guild::voice_states |
states of members currently in voice channels; lacks guild_id
struct discord_guild_members* discord_guild::members |
users in the guild
struct discord_channels* discord_guild::channels |
channels in the guild
struct discord_channels* discord_guild::threads |
all active threads in the guild that current user has permission to view
struct discord_presence_updates* discord_guild::presences |
presences of the members in the guild, will only include non-offline members if the size is greater than large threshold
int discord_guild::max_presences |
the maximum number of presences for the guild (null is always returned, apart from the largest of guilds)
int discord_guild::max_members |
the maximum number of members for the guild
char* discord_guild::vanity_url_code |
the vanity url code for the guild
char* discord_guild::description |
the description of a Community guild
char* discord_guild::banner |
banner hash
enum discord_premium_tier discord_guild::premium_tier |
premium tier (Server Boost level)
int discord_guild::premium_subscription_count |
the number of boosts this guild currently has
char* discord_guild::preferred_locale |
the preferred locale of a Community guild; used in server discovery and notices from Discord, and sent in interactions; defaults to "en-US"
u64snowflake discord_guild::public_updates_channel_id |
the id of the channel where admins and moderators of Community guilds receive notices from Discord
int discord_guild::max_video_channel_users |
the maximum amount of users in a video channel
int discord_guild::approximate_member_count |
approximate number of members in this guild
int discord_guild::approximate_presence_count |
approximate number of non-offline members in this guild
struct discord_welcome_screen* discord_guild::welcome_screen |
the welcome screen of a Community guild, shown to new members, returned in an invite's guild object
enum discord_guild_nsfw_level discord_guild::nsfw_level |
guild NSFW level
struct discord_stage_instances* discord_guild::stage_instances |
stage instances in the guild
struct discord_stickers* discord_guild::stickers |
custom guild stickers
struct discord_guild_scheduled_events* discord_guild::guild_scheduled_events |
the scheduled events in the guilds
bool discord_guild::premium_progress_bar_enabled |
whether the guild has the boost progress bar enabled