Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <interactions.h>
Data Fields | |
u64snowflake | id |
u64snowflake | application_id |
enum discord_interaction_types | type |
struct discord_interaction_data * | data |
u64snowflake | guild_id |
u64snowflake | channel_id |
struct discord_guild_member * | member |
struct discord_user * | user |
char * | token |
int | version |
struct discord_message * | message |
char * | locale |
char * | guild_locale |
Public methods
discord_interaction_from_json(const char json[], size_t len, struct discord_interaction *this)
discord_interaction_from_jsmnf(jsmnf *root, const char json[], struct discord_interaction *this)
u64snowflake discord_interaction::id |
ID of the interaction
u64snowflake discord_interaction::application_id |
ID of the application this interaction is for
enum discord_interaction_types discord_interaction::type |
the type of the interaction
struct discord_interaction_data* discord_interaction::data |
the command data payload
u64snowflake discord_interaction::guild_id |
the guild it was sent from
u64snowflake discord_interaction::channel_id |
the channel it was sent from
struct discord_guild_member* discord_interaction::member |
guild member data for the invoking user, including permissions
struct discord_user* discord_interaction::user |
user object for the invoking user, if invoked in a DM
char* discord_interaction::token |
a continuation token for responding to the interaction
int discord_interaction::version |
read-only property, always 1
struct discord_message* discord_interaction::message |
for components, the message they were attached to
char* discord_interaction::locale |
the selected language of the invoking user
char* discord_interaction::guild_locale |
the guild preferred locale, if invoked in a guild