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

#include <interactions.h>

Collaboration diagram for discord_interaction_data:
[legend]

Data Fields

u64snowflake id
 
char * name
 
enum discord_application_command_types type
 
struct discord_resolved_dataresolved
 
struct discord_application_command_interaction_data_optionsoptions
 
char * custom_id
 
enum discord_component_types component_type
 
struct stringsvalues
 
u64snowflake target_id
 
struct discord_componentscomponents
 

Field Documentation

◆ id

u64snowflake discord_interaction_data::id

the ID of the invoked command

◆ name

char* discord_interaction_data::name

the name of the invoked command

◆ type

enum discord_application_command_types discord_interaction_data::type

the type of the invoked command

◆ resolved

struct discord_resolved_data* discord_interaction_data::resolved

converted users + roles + channels + attachments

◆ options

struct discord_application_command_interaction_data_options* discord_interaction_data::options

the params + values from the user

Examples
slash-commands.c.

◆ custom_id

char* discord_interaction_data::custom_id

the custom_id of the component

◆ component_type

enum discord_component_types discord_interaction_data::component_type

the type of the component

◆ values

struct strings* discord_interaction_data::values

the values the user selected

Examples
components.c.

◆ target_id

u64snowflake discord_interaction_data::target_id

the ID of the user or messaged targetted by a user or message command

◆ components

struct discord_components* discord_interaction_data::components

the values submitted by the user


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