Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <application.h>
Data Fields | |
u64snowflake | id |
char * | name |
char * | icon |
char * | description |
struct strings * | rpc_origins |
bool | bot_public |
bool | bot_require_code_grant |
char * | terms_of_service_url |
char * | privacy_policy_url |
struct discord_user * | owner |
char * | summary |
char * | verify_key |
struct discord_team * | team |
u64snowflake | guild_id |
u64snowflake | primary_sku_id |
char * | slug |
char * | cover_image |
u64bitmask | flags |
Public methods
discord_application_from_json(const char json[], size_t len, struct discord_application *this)
discord_application_from_jsmnf(jsmnf *root, const char json[], struct discord_application *this)
u64snowflake discord_application::id |
the ID of the app
char* discord_application::name |
the name of the app
char* discord_application::icon |
the icon hash of the app
char* discord_application::description |
the description of the app
struct strings* discord_application::rpc_origins |
an array of rpc origin urls, if rpc is enabled
bool discord_application::bot_public |
when false only app owner can join the app's bot to guilds
bool discord_application::bot_require_code_grant |
when true the app's bot will only join upon completion of the full oauth2 code grant flow
char* discord_application::terms_of_service_url |
the url of the app's terms of service
char* discord_application::privacy_policy_url |
the url of the app's privacy policy
struct discord_user* discord_application::owner |
partial user object containing info on the owner of the application
char* discord_application::summary |
if this application is a game sold on Discord, this field will be the summary field for the store page of its primary sku
char* discord_application::verify_key |
the hex encoded key for verification in interactions and the GameSDK's GetTicket
struct discord_team* discord_application::team |
if the application belongs to a team, this will be a list of the members of that team
u64snowflake discord_application::guild_id |
if this application is a game sold on Discord, this field will be the guild to which it has been linked
u64snowflake discord_application::primary_sku_id |
if this application is a game sold on Discord, this field will be the ID of the "Game SKU" that is created, if exists
char* discord_application::slug |
if this application is a game sold on Discord, this field will be the URL slug that links to the store page
char* discord_application::cover_image |
the application's default rich presence invite cover image hash
u64bitmask discord_application::flags |
the application's public flags