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

#include <user.h>

Data Fields

u64snowflake id
 
char * username
 
char * discriminator
 
char * avatar
 
bool bot
 
bool System
 
bool mfa_enabled
 
char * banner
 
int accent_color
 
char * locale
 
bool verified
 
char * email
 
u64bitmask flags
 
enum discord_premium_types premium_type
 
u64bitmask public_flags
 

Detailed Description

Field Documentation

◆ id

u64snowflake discord_user::id

the user's ID

Examples
fetch-messages.c, guild.c, reaction.c, and slash-commands.c.

◆ username

char* discord_user::username

◆ discriminator

char* discord_user::discriminator

◆ avatar

char* discord_user::avatar

the user's avatar hash

◆ bot

bool discord_user::bot

whether the user belong to an OAuth2 application

Examples
audit-log.c, cache.c, channel.c, components.c, embed.c, emoji.c, guild.c, invite.c, manual-dm.c, pin.c, reaction.c, and slash-commands.c.

◆ System

bool discord_user::System

whether the user is an Official Discord System user (part of the urgent message system)

◆ mfa_enabled

bool discord_user::mfa_enabled

whether the user has two factor enabled on their account

◆ banner

char* discord_user::banner

the user's banner hash

◆ accent_color

int discord_user::accent_color

the user's banner color encoded as an integer representation of hexadecimal color code

◆ locale

char* discord_user::locale

the user's chosen language option

◆ verified

bool discord_user::verified

whether the email on this account has been verified

◆ email

char* discord_user::email

the user's email

◆ flags

u64bitmask discord_user::flags

the User flags on a user's account

◆ premium_type

enum discord_premium_types discord_user::premium_type

the type of Nitro subscription on a user's account

◆ public_flags

u64bitmask discord_user::public_flags

the public User flags on a user's account


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