6#ifndef API_APPLICATION_COMMANDS_H
7#define API_APPLICATION_COMMANDS_H
size_t discord_guild_application_command_permissions_from_json(const char buf[], size_t size, struct discord_guild_application_command_permissions *self)
size_t discord_application_command_from_json(const char buf[], size_t size, struct discord_application_command *self)
size_t discord_application_command_permissions_to_json(char buf[], size_t size, const struct discord_application_command_permissions *self)
long discord_create_global_application_command_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_global_application_command *self)
size_t discord_application_command_to_json(char buf[], size_t size, const struct discord_application_command *self)
size_t discord_application_command_permissions_from_json(const char buf[], size_t size, struct discord_application_command_permissions *self)
size_t discord_create_global_application_command_to_json(char buf[], size_t size, const struct discord_create_global_application_command *self)
discord_application_command_option_types
Definition: application_commands.h:33
@ DISCORD_APPLICATION_OPTION_SUB_COMMAND_GROUP
Definition: application_commands.h:35
@ DISCORD_APPLICATION_OPTION_NUMBER
Definition: application_commands.h:47
@ DISCORD_APPLICATION_OPTION_CHANNEL
Definition: application_commands.h:42
@ DISCORD_APPLICATION_OPTION_ROLE
Definition: application_commands.h:43
@ DISCORD_APPLICATION_OPTION_USER
Definition: application_commands.h:40
@ DISCORD_APPLICATION_OPTION_BOOLEAN
Definition: application_commands.h:39
@ DISCORD_APPLICATION_OPTION_ATTACHMENT
Definition: application_commands.h:49
@ DISCORD_APPLICATION_OPTION_STRING
Definition: application_commands.h:36
@ DISCORD_APPLICATION_OPTION_INTEGER
Definition: application_commands.h:38
@ DISCORD_APPLICATION_OPTION_MENTIONABLE
Definition: application_commands.h:45
@ DISCORD_APPLICATION_OPTION_SUB_COMMAND
Definition: application_commands.h:34
void discord_guild_application_command_permissions_cleanup(struct discord_guild_application_command_permissions *self)
long discord_application_command_permission_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_application_command_permission *self)
size_t discord_create_global_application_command_from_json(const char buf[], size_t size, struct discord_create_global_application_command *self)
void discord_edit_guild_application_command_init(struct discord_edit_guild_application_command *self)
void discord_edit_guild_application_command_cleanup(struct discord_edit_guild_application_command *self)
long discord_application_command_permissions_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_application_command_permissions *self)
long discord_edit_global_application_command_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_edit_global_application_command *self)
jsonbcode discord_guild_application_command_permissions_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_application_command_permissions *self)
jsonbcode discord_bulk_overwrite_guild_application_commands_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_bulk_overwrite_guild_application_commands *self)
size_t discord_edit_guild_application_command_to_json(char buf[], size_t size, const struct discord_edit_guild_application_command *self)
size_t discord_guild_application_command_permissions_to_json(char buf[], size_t size, const struct discord_guild_application_command_permissions *self)
long discord_create_guild_application_command_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_guild_application_command *self)
jsonbcode discord_application_command_permissions_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_application_command_permissions *self)
size_t discord_application_commands_from_json(const char buf[], size_t size, struct discord_application_commands *self)
void discord_application_commands_cleanup(struct discord_application_commands *self)
size_t discord_bulk_overwrite_guild_application_commands_to_json(char buf[], size_t size, const struct discord_bulk_overwrite_guild_application_commands *self)
void discord_create_global_application_command_cleanup(struct discord_create_global_application_command *self)
discord_application_command_types
Definition: application_commands.h:22
@ DISCORD_APPLICATION_CHAT_INPUT
Definition: application_commands.h:25
@ DISCORD_APPLICATION_USER
Definition: application_commands.h:28
@ DISCORD_APPLICATION_MESSAGE
Definition: application_commands.h:31
size_t discord_edit_global_application_command_to_json(char buf[], size_t size, const struct discord_edit_global_application_command *self)
size_t discord_edit_global_application_command_from_json(const char buf[], size_t size, struct discord_edit_global_application_command *self)
jsonbcode discord_application_commands_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_application_commands *self)
size_t discord_application_command_permission_from_json(const char buf[], size_t size, struct discord_application_command_permission *self)
jsonbcode discord_application_command_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_application_command *self)
long discord_application_command_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_application_command *self)
void discord_edit_global_application_command_init(struct discord_edit_global_application_command *self)
void discord_edit_global_application_command_cleanup(struct discord_edit_global_application_command *self)
jsonbcode discord_edit_global_application_command_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_edit_global_application_command *self)
void discord_application_command_permission_init(struct discord_application_command_permission *self)
void discord_bulk_overwrite_guild_application_commands_cleanup(struct discord_bulk_overwrite_guild_application_commands *self)
size_t discord_bulk_overwrite_guild_application_commands_from_json(const char buf[], size_t size, struct discord_bulk_overwrite_guild_application_commands *self)
size_t discord_application_command_permission_to_json(char buf[], size_t size, const struct discord_application_command_permission *self)
void discord_application_command_permissions_cleanup(struct discord_application_command_permissions *self)
void discord_application_command_init(struct discord_application_command *self)
void discord_application_command_permission_cleanup(struct discord_application_command_permission *self)
void discord_create_guild_application_command_cleanup(struct discord_create_guild_application_command *self)
jsonbcode discord_edit_guild_application_command_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_edit_guild_application_command *self)
void discord_application_command_cleanup(struct discord_application_command *self)
jsonbcode discord_application_command_permission_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_application_command_permission *self)
void discord_bulk_overwrite_guild_application_commands_init(struct discord_bulk_overwrite_guild_application_commands *self)
jsonbcode discord_create_global_application_command_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_global_application_command *self)
size_t discord_create_guild_application_command_to_json(char buf[], size_t size, const struct discord_create_guild_application_command *self)
void discord_create_global_application_command_init(struct discord_create_global_application_command *self)
long discord_edit_guild_application_command_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_edit_guild_application_command *self)
long discord_application_commands_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_application_commands *self)
long discord_guild_application_command_permissions_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_guild_application_command_permissions *self)
size_t discord_edit_guild_application_command_from_json(const char buf[], size_t size, struct discord_edit_guild_application_command *self)
size_t discord_create_guild_application_command_from_json(const char buf[], size_t size, struct discord_create_guild_application_command *self)
long discord_bulk_overwrite_guild_application_commands_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_bulk_overwrite_guild_application_commands *self)
size_t discord_application_commands_to_json(char buf[], size_t size, const struct discord_application_commands *self)
discord_application_command_permission_types
Definition: application_commands.h:51
@ DISCORD_APPLICATION_PERMISSION_USER
Definition: application_commands.h:53
@ DISCORD_APPLICATION_PERMISSION_ROLE
Definition: application_commands.h:52
@ DISCORD_APPLICATION_PERMISSION_CHANNEL
Definition: application_commands.h:54
jsonbcode discord_create_guild_application_command_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_guild_application_command *self)
void discord_create_guild_application_command_init(struct discord_create_guild_application_command *self)
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
jsonbcode
json-builder return codes
Definition: json-build.h:34
Definition: application_commands.h:161
char * name
Definition: application_commands.h:163
json_char * value
Definition: application_commands.h:169
struct discord_application_command_interaction_data_options * options
Definition: application_commands.h:173
bool focused
Definition: application_commands.h:176
enum discord_application_command_option_types type
Definition: application_commands.h:165
Definition: application_commands.h:178
int size
Definition: application_commands.h:178
struct discord_application_command_interaction_data_option * array
Definition: application_commands.h:179
Definition: application_commands.h:151
char * name
Definition: application_commands.h:153
json_char * value
Definition: application_commands.h:156
Definition: application_commands.h:158
struct discord_application_command_option_choice * array
Definition: application_commands.h:159
int size
Definition: application_commands.h:158
Definition: application_commands.h:110
char * min_value
Definition: application_commands.h:137
char * name
Definition: application_commands.h:114
char * description
Definition: application_commands.h:116
char * max_value
Definition: application_commands.h:141
struct discord_application_command_options * options
Definition: application_commands.h:128
struct integers * channel_types
Definition: application_commands.h:133
bool required
Definition: application_commands.h:119
enum discord_application_command_option_types type
Definition: application_commands.h:112
bool autocomplete
Definition: application_commands.h:145
struct discord_application_command_option_choices * choices
Definition: application_commands.h:123
Definition: application_commands.h:148
struct discord_application_command_option * array
Definition: application_commands.h:149
int size
Definition: application_commands.h:148
Definition: application_commands.h:194
bool permission
Definition: application_commands.h:200
enum discord_application_command_permission_types type
Definition: application_commands.h:198
u64snowflake id
Definition: application_commands.h:196
Definition: application_commands.h:202
struct discord_application_command_permission * array
Definition: application_commands.h:203
int size
Definition: application_commands.h:202
Definition: application_commands.h:56
u64bitmask default_member_permissions
Definition: application_commands.h:88
struct discord_application_command_options * options
Definition: application_commands.h:84
u64snowflake version
Definition: application_commands.h:104
bool default_permission
Definition: application_commands.h:99
char * description
Definition: application_commands.h:80
bool dm_permission
Definition: application_commands.h:95
u64snowflake id
Definition: application_commands.h:59
char * name
Definition: application_commands.h:75
u64snowflake guild_id
Definition: application_commands.h:71
u64snowflake application_id
Definition: application_commands.h:67
enum discord_application_command_types type
Definition: application_commands.h:63
Definition: application_commands.h:107
struct discord_application_command * array
Definition: application_commands.h:108
int size
Definition: application_commands.h:107
Definition: application_commands.h:295
u64snowflake id
Definition: application_commands.h:297
struct strings * description_localizations
Definition: application_commands.h:307
char * description
Definition: application_commands.h:304
char * name
Definition: application_commands.h:299
struct strings * name_localizations
Definition: application_commands.h:302
bool dm_permission
Definition: application_commands.h:320
enum discord_application_command_types type
Definition: application_commands.h:323
struct discord_application_command_options * options
Definition: application_commands.h:310
u64bitmask default_member_permissions
Definition: application_commands.h:314
Definition: application_commands.h:208
char * name
Definition: application_commands.h:210
bool default_permission
Definition: application_commands.h:227
struct discord_application_command_options * options
Definition: application_commands.h:215
enum discord_application_command_types type
Definition: application_commands.h:230
char * description
Definition: application_commands.h:212
bool dm_permission
Definition: application_commands.h:225
u64bitmask default_member_permissions
Definition: application_commands.h:219
Definition: application_commands.h:254
char * description
Definition: application_commands.h:258
char * name
Definition: application_commands.h:256
enum discord_application_command_types type
Definition: application_commands.h:276
bool default_permission
Definition: application_commands.h:273
bool dm_permission
Definition: application_commands.h:271
struct discord_application_command_options * options
Definition: application_commands.h:261
u64bitmask default_member_permissions
Definition: application_commands.h:265
Definition: application_commands.h:233
struct discord_application_command_options * options
Definition: application_commands.h:240
char * name
Definition: application_commands.h:235
bool dm_permission
Definition: application_commands.h:250
u64bitmask default_member_permissions
Definition: application_commands.h:244
bool default_permission
Definition: application_commands.h:252
char * description
Definition: application_commands.h:237
Definition: application_commands.h:279
char * name
Definition: application_commands.h:281
struct discord_application_command_options * options
Definition: application_commands.h:286
bool default_permission
Definition: application_commands.h:293
char * description
Definition: application_commands.h:283
u64bitmask default_member_permissions
Definition: application_commands.h:290
Definition: application_commands.h:181
struct discord_application_command_permissions * permissions
Definition: application_commands.h:189
u64snowflake guild_id
Definition: application_commands.h:187
u64snowflake application_id
Definition: application_commands.h:185
u64snowflake id
Definition: application_commands.h:183
Definition: application_commands.h:191
struct discord_guild_application_command_permission * array
Definition: application_commands.h:192
int size
Definition: application_commands.h:191
Handle for building a JSON string.
Definition: json-build.h:61