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

#include <interactions.h>

Collaboration diagram for discord_interaction:
[legend]

Data Fields

u64snowflake id
 
u64snowflake application_id
 
enum discord_interaction_types type
 
struct discord_interaction_datadata
 
u64snowflake guild_id
 
u64snowflake channel_id
 
struct discord_guild_membermember
 
struct discord_useruser
 
char * token
 
int version
 
struct discord_messagemessage
 
char * locale
 
char * guild_locale
 

Detailed Description

Field Documentation

◆ id

u64snowflake discord_interaction::id

ID of the interaction

Examples
components.c, slash-commands.c, and slash-commands2.c.

◆ application_id

u64snowflake discord_interaction::application_id

ID of the application this interaction is for

◆ type

enum discord_interaction_types discord_interaction::type

the type of the interaction

Examples
slash-commands.c.

◆ data

struct discord_interaction_data* discord_interaction::data

the command data payload

Examples
components.c, and slash-commands.c.

◆ guild_id

u64snowflake discord_interaction::guild_id

the guild it was sent from

◆ channel_id

u64snowflake discord_interaction::channel_id

the channel it was sent from

◆ member

struct discord_guild_member* discord_interaction::member

guild member data for the invoking user, including permissions

Examples
slash-commands.c.

◆ user

struct discord_user* discord_interaction::user

user object for the invoking user, if invoked in a DM

◆ token

char* discord_interaction::token

a continuation token for responding to the interaction

Examples
components.c, slash-commands.c, and slash-commands2.c.

◆ version

int discord_interaction::version

read-only property, always 1

◆ message

struct discord_message* discord_interaction::message

for components, the message they were attached to

◆ locale

char* discord_interaction::locale

the selected language of the invoking user

◆ guild_locale

char* discord_interaction::guild_locale

the guild preferred locale, if invoked in a guild


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