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

#include <guild.h>

Collaboration diagram for discord_guild:
[legend]

Data Fields

u64snowflake id
 
char * name
 
char * icon
 
char * icon_hash
 
char * splash
 
char * discovery_splash
 
bool owner
 
u64snowflake owner_id
 
u64bitmask permissions
 
u64snowflake afk_channel_id
 
int afk_timeout
 
bool widget_enabled
 
u64snowflake widget_channel_id
 
enum discord_verification_level verification_level
 
enum discord_message_notification_level default_message_notifications
 
enum discord_explicit_content_filter_level explicit_content_filter
 
struct discord_rolesroles
 
struct discord_emojisemojis
 
struct stringsfeatures
 
enum discord_mfa_level mfa_level
 
u64snowflake application_id
 
u64snowflake system_channel_id
 
u64bitmask system_channel_flags
 
u64snowflake rules_channel_id
 
u64unix_ms joined_at
 
bool large
 
bool unavailable
 
int member_count
 
struct discord_voice_statesvoice_states
 
struct discord_guild_membersmembers
 
struct discord_channelschannels
 
struct discord_channelsthreads
 
struct discord_presence_updatespresences
 
int max_presences
 
int max_members
 
char * vanity_url_code
 
char * description
 
char * banner
 
enum discord_premium_tier premium_tier
 
int premium_subscription_count
 
char * preferred_locale
 
u64snowflake public_updates_channel_id
 
int max_video_channel_users
 
int approximate_member_count
 
int approximate_presence_count
 
struct discord_welcome_screenwelcome_screen
 
enum discord_guild_nsfw_level nsfw_level
 
struct discord_stage_instancesstage_instances
 
struct discord_stickersstickers
 
struct discord_guild_scheduled_eventsguild_scheduled_events
 
bool premium_progress_bar_enabled
 

Detailed Description

Field Documentation

◆ id

u64snowflake discord_guild::id

guild id

Examples
fetch-messages.c.

◆ name

char* discord_guild::name

guild name (2-100 characters, excluding trailing and leading whitespace

Examples
cache.c, and fetch-messages.c.

◆ icon

char* discord_guild::icon

icon hash

◆ icon_hash

char* discord_guild::icon_hash

icon hash, returned when in the template object

◆ splash

char* discord_guild::splash

splash hash

◆ discovery_splash

char* discord_guild::discovery_splash

discovery splash hash, only present for DISCOVERABLE guilds

◆ owner

bool discord_guild::owner

true if the user is the owner of the guild

◆ owner_id

u64snowflake discord_guild::owner_id

id of owner

◆ permissions

u64bitmask discord_guild::permissions

total permissions for the user in the guild (excludes overwrites)

◆ afk_channel_id

u64snowflake discord_guild::afk_channel_id

id of afk channel

◆ afk_timeout

int discord_guild::afk_timeout

afk timeout in seconds

◆ widget_enabled

bool discord_guild::widget_enabled

true if the server widget is enabled

◆ widget_channel_id

u64snowflake discord_guild::widget_channel_id

the channel id the widget will generate an invite to, or NULL if set to no invite

◆ verification_level

enum discord_verification_level discord_guild::verification_level

verification level required for the guild

◆ default_message_notifications

enum discord_message_notification_level discord_guild::default_message_notifications

default message notifications level

◆ explicit_content_filter

enum discord_explicit_content_filter_level discord_guild::explicit_content_filter

explicit content filter level

◆ roles

struct discord_roles* discord_guild::roles

roles in the guilds

◆ emojis

struct discord_emojis* discord_guild::emojis

custom guild emojis

◆ features

struct strings* discord_guild::features

enabled guild features

◆ mfa_level

enum discord_mfa_level discord_guild::mfa_level

required MFA level for the guild

◆ application_id

u64snowflake discord_guild::application_id

application id of the guild creator if it is bot-created

◆ system_channel_id

u64snowflake discord_guild::system_channel_id

the id of the channel where guild notices such as welcome messages and boost events are posted

◆ system_channel_flags

u64bitmask discord_guild::system_channel_flags

◆ rules_channel_id

u64snowflake discord_guild::rules_channel_id

the id of the channel where Community guilds can display rules and/or guidelines

◆ joined_at

u64unix_ms discord_guild::joined_at

when this guild was joined at

◆ large

bool discord_guild::large

true if this is considered a large guild

◆ unavailable

bool discord_guild::unavailable

true if this guild is unavailable due to an outage

◆ member_count

int discord_guild::member_count

total number of members in this guild

◆ voice_states

struct discord_voice_states* discord_guild::voice_states

states of members currently in voice channels; lacks guild_id

◆ members

struct discord_guild_members* discord_guild::members

users in the guild

◆ channels

struct discord_channels* discord_guild::channels

channels in the guild

◆ threads

struct discord_channels* discord_guild::threads

all active threads in the guild that current user has permission to view

◆ presences

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

◆ max_presences

int discord_guild::max_presences

the maximum number of presences for the guild (null is always returned, apart from the largest of guilds)

◆ max_members

int discord_guild::max_members

the maximum number of members for the guild

◆ vanity_url_code

char* discord_guild::vanity_url_code

the vanity url code for the guild

◆ description

char* discord_guild::description

the description of a Community guild

◆ banner

char* discord_guild::banner

banner hash

◆ premium_tier

enum discord_premium_tier discord_guild::premium_tier

premium tier (Server Boost level)

◆ premium_subscription_count

int discord_guild::premium_subscription_count

the number of boosts this guild currently has

◆ preferred_locale

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"

◆ public_updates_channel_id

u64snowflake discord_guild::public_updates_channel_id

the id of the channel where admins and moderators of Community guilds receive notices from Discord

◆ max_video_channel_users

int discord_guild::max_video_channel_users

the maximum amount of users in a video channel

◆ approximate_member_count

int discord_guild::approximate_member_count

approximate number of members in this guild

◆ approximate_presence_count

int discord_guild::approximate_presence_count

approximate number of non-offline members in this guild

◆ welcome_screen

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

◆ nsfw_level

enum discord_guild_nsfw_level discord_guild::nsfw_level

guild NSFW level

◆ stage_instances

struct discord_stage_instances* discord_guild::stage_instances

stage instances in the guild

◆ stickers

struct discord_stickers* discord_guild::stickers

custom guild stickers

◆ guild_scheduled_events

struct discord_guild_scheduled_events* discord_guild::guild_scheduled_events

the scheduled events in the guilds

◆ premium_progress_bar_enabled

bool discord_guild::premium_progress_bar_enabled

whether the guild has the boost progress bar enabled


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