6#ifndef API_INTERACTIONS_H
7#define API_INTERACTIONS_H
discord_application_command_types
Definition: application_commands.h:22
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
uint64_t u64bitmask
Bitmask primitive.
Definition: types.h:35
char json_char
Raw JSON string.
Definition: types.h:44
size_t discord_edit_original_interaction_response_to_json(char buf[], size_t size, const struct discord_edit_original_interaction_response *self)
void discord_create_followup_message_init(struct discord_create_followup_message *self)
void discord_interaction_response_cleanup(struct discord_interaction_response *self)
size_t discord_create_followup_message_to_json(char buf[], size_t size, const struct discord_create_followup_message *self)
void discord_interaction_init(struct discord_interaction *self)
size_t discord_create_followup_message_from_json(const char buf[], size_t size, struct discord_create_followup_message *self)
jsonbcode discord_interaction_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_interaction *self)
size_t discord_interaction_to_json(char buf[], size_t size, const struct discord_interaction *self)
jsonbcode discord_create_followup_message_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_followup_message *self)
long discord_edit_original_interaction_response_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_edit_original_interaction_response *self)
void discord_edit_followup_message_init(struct discord_edit_followup_message *self)
long discord_interaction_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_interaction *self)
void discord_interaction_cleanup(struct discord_interaction *self)
void discord_create_followup_message_cleanup(struct discord_create_followup_message *self)
void discord_edit_original_interaction_response_init(struct discord_edit_original_interaction_response *self)
size_t discord_interaction_response_from_json(const char buf[], size_t size, struct discord_interaction_response *self)
jsonbcode discord_edit_original_interaction_response_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_edit_original_interaction_response *self)
void discord_edit_original_interaction_response_cleanup(struct discord_edit_original_interaction_response *self)
long discord_edit_followup_message_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_edit_followup_message *self)
jsonbcode discord_interaction_response_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_interaction_response *self)
size_t discord_edit_followup_message_from_json(const char buf[], size_t size, struct discord_edit_followup_message *self)
jsonbcode discord_edit_followup_message_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_edit_followup_message *self)
void discord_interaction_response_init(struct discord_interaction_response *self)
long discord_create_followup_message_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_followup_message *self)
size_t discord_interaction_from_json(const char buf[], size_t size, struct discord_interaction *self)
discord_interaction_types
Definition: interactions.h:22
@ DISCORD_INTERACTION_APPLICATION_COMMAND_AUTOCOMPLETE
Definition: interactions.h:26
@ DISCORD_INTERACTION_MESSAGE_COMPONENT
Definition: interactions.h:25
@ DISCORD_INTERACTION_APPLICATION_COMMAND
Definition: interactions.h:24
@ DISCORD_INTERACTION_PING
Definition: interactions.h:23
@ DISCORD_INTERACTION_MODAL_SUBMIT
Definition: interactions.h:27
size_t discord_interaction_response_to_json(char buf[], size_t size, const struct discord_interaction_response *self)
void discord_edit_followup_message_cleanup(struct discord_edit_followup_message *self)
long discord_interaction_response_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_interaction_response *self)
discord_interaction_callback_types
Definition: interactions.h:29
@ DISCORD_INTERACTION_APPLICATION_COMMAND_AUTOCOMPLETE_RESULT
Definition: interactions.h:43
@ DISCORD_INTERACTION_CHANNEL_MESSAGE_WITH_SOURCE
Definition: interactions.h:33
@ DISCORD_INTERACTION_DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE
Definition: interactions.h:36
@ DISCORD_INTERACTION_UPDATE_MESSAGE
Definition: interactions.h:41
@ DISCORD_INTERACTION_PONG
Definition: interactions.h:31
@ DISCORD_INTERACTION_DEFERRED_UPDATE_MESSAGE
Definition: interactions.h:39
@ DISCORD_INTERACTION_MODAL
Definition: interactions.h:45
size_t discord_edit_followup_message_to_json(char buf[], size_t size, const struct discord_edit_followup_message *self)
size_t discord_edit_original_interaction_response_from_json(const char buf[], size_t size, struct discord_edit_original_interaction_response *self)
jsonbcode
json-builder return codes
Definition: json-build.h:34
discord_component_types
Definition: message_components.h:22
Definition: channel.h:561
Definition: application_commands.h:178
Definition: application_commands.h:158
Definition: channel.h:393
int size
Definition: channel.h:393
Definition: message_components.h:101
Definition: interactions.h:199
struct discord_attachments * attachments
Definition: interactions.h:227
bool tts
Definition: interactions.h:212
bool wait
Definition: interactions.h:204
u64bitmask flags
Definition: interactions.h:232
u64snowflake thread_id
Definition: interactions.h:207
char * avatar_url
Definition: interactions.h:210
struct discord_embeds * embeds
Definition: interactions.h:215
struct discord_components * components
Definition: interactions.h:223
struct discord_allowed_mention * allowed_mentions
Definition: interactions.h:219
Definition: interactions.h:236
struct discord_attachments * attachments
Definition: interactions.h:257
char * content
Definition: interactions.h:242
u64snowflake thread_id
Definition: interactions.h:239
struct discord_components * components
Definition: interactions.h:253
struct discord_embeds * embeds
Definition: interactions.h:245
struct discord_allowed_mention * allowed_mentions
Definition: interactions.h:249
Definition: interactions.h:174
struct discord_allowed_mention * allowed_mentions
Definition: interactions.h:187
struct discord_embeds * embeds
Definition: interactions.h:183
struct discord_attachments * attachments
Definition: interactions.h:195
struct discord_components * components
Definition: interactions.h:191
u64snowflake thread_id
Definition: interactions.h:177
char * content
Definition: interactions.h:180
Definition: channel.h:441
Definition: interactions.h:133
struct discord_application_command_option_choices * choices
Definition: interactions.h:163
struct discord_attachments * attachments
Definition: interactions.h:159
char * custom_id
Definition: interactions.h:166
char * title
Definition: interactions.h:168
struct discord_embeds * embeds
Definition: interactions.h:149
char * content
Definition: interactions.h:145
struct discord_components * components
Definition: interactions.h:136
bool tts
Definition: interactions.h:141
u64bitmask flags
Definition: interactions.h:155
Definition: interactions.h:76
struct discord_application_command_interaction_data_options * options
Definition: interactions.h:86
char * name
Definition: interactions.h:80
struct strings * values
Definition: interactions.h:92
struct discord_components * components
Definition: interactions.h:96
u64snowflake target_id
Definition: interactions.h:94
enum discord_component_types component_type
Definition: interactions.h:90
u64snowflake id
Definition: interactions.h:78
struct discord_resolved_data * resolved
Definition: interactions.h:84
char * custom_id
Definition: interactions.h:88
enum discord_application_command_types type
Definition: interactions.h:82
Definition: interactions.h:125
enum discord_interaction_callback_types type
Definition: interactions.h:127
struct discord_interaction_callback_data * data
Definition: interactions.h:130
Definition: interactions.h:48
u64snowflake guild_id
Definition: interactions.h:58
u64snowflake id
Definition: interactions.h:50
struct discord_message * message
Definition: interactions.h:70
u64snowflake channel_id
Definition: interactions.h:60
char * locale
Definition: interactions.h:72
char * guild_locale
Definition: interactions.h:74
struct discord_interaction_data * data
Definition: interactions.h:56
enum discord_interaction_types type
Definition: interactions.h:54
int version
Definition: interactions.h:68
u64snowflake application_id
Definition: interactions.h:52
struct discord_user * user
Definition: interactions.h:64
struct discord_guild_member * member
Definition: interactions.h:62
char * token
Definition: interactions.h:66
Definition: interactions.h:112
u64snowflake id
Definition: interactions.h:114
char * name
Definition: interactions.h:118
enum discord_interaction_types type
Definition: interactions.h:116
struct discord_user * user
Definition: interactions.h:120
struct discord_guild_member * member
Definition: interactions.h:122
Definition: channel.h:195
Definition: interactions.h:98
json_char * users
Definition: interactions.h:100
json_char * attachments
Definition: interactions.h:110
json_char * channels
Definition: interactions.h:106
json_char * roles
Definition: interactions.h:104
json_char * messages
Definition: interactions.h:108
json_char * members
Definition: interactions.h:102
Handle for building a JSON string.
Definition: json-build.h:61