size_t discord_execute_webhook_to_json(char buf[], size_t size, const struct discord_execute_webhook *self)
 
void discord_execute_webhook_init(struct discord_execute_webhook *self)
 
jsonbcode discord_webhooks_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_webhooks *self)
 
long discord_create_webhook_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_webhook *self)
 
size_t discord_webhooks_from_json(const char buf[], size_t size, struct discord_webhooks *self)
 
jsonbcode discord_modify_webhook_with_token_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_webhook_with_token *self)
 
size_t discord_create_webhook_from_json(const char buf[], size_t size, struct discord_create_webhook *self)
 
size_t discord_webhook_from_json(const char buf[], size_t size, struct discord_webhook *self)
 
void discord_edit_webhook_message_cleanup(struct discord_edit_webhook_message *self)
 
void discord_modify_webhook_cleanup(struct discord_modify_webhook *self)
 
void discord_webhook_cleanup(struct discord_webhook *self)
 
jsonbcode discord_create_webhook_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_webhook *self)
 
size_t discord_webhooks_to_json(char buf[], size_t size, const struct discord_webhooks *self)
 
long discord_execute_webhook_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_execute_webhook *self)
 
size_t discord_webhook_to_json(char buf[], size_t size, const struct discord_webhook *self)
 
void discord_create_webhook_init(struct discord_create_webhook *self)
 
long discord_modify_webhook_with_token_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_webhook_with_token *self)
 
void discord_modify_webhook_init(struct discord_modify_webhook *self)
 
size_t discord_edit_webhook_message_from_json(const char buf[], size_t size, struct discord_edit_webhook_message *self)
 
size_t discord_execute_webhook_from_json(const char buf[], size_t size, struct discord_execute_webhook *self)
 
long discord_modify_webhook_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_webhook *self)
 
long discord_webhooks_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_webhooks *self)
 
void discord_webhook_init(struct discord_webhook *self)
 
void discord_execute_webhook_cleanup(struct discord_execute_webhook *self)
 
discord_webhook_types
Definition: webhook.h:22
 
@ DISCORD_WEBHOOK_INCOMING
Definition: webhook.h:24
 
@ DISCORD_WEBHOOK_APPLICATION
Definition: webhook.h:29
 
@ DISCORD_WEBHOOK_CHANNEL_FOLLOWER
Definition: webhook.h:27
 
long discord_edit_webhook_message_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_edit_webhook_message *self)
 
void discord_modify_webhook_with_token_cleanup(struct discord_modify_webhook_with_token *self)
 
size_t discord_modify_webhook_with_token_from_json(const char buf[], size_t size, struct discord_modify_webhook_with_token *self)
 
void discord_edit_webhook_message_init(struct discord_edit_webhook_message *self)
 
void discord_modify_webhook_with_token_init(struct discord_modify_webhook_with_token *self)
 
size_t discord_create_webhook_to_json(char buf[], size_t size, const struct discord_create_webhook *self)
 
size_t discord_edit_webhook_message_to_json(char buf[], size_t size, const struct discord_edit_webhook_message *self)
 
size_t discord_modify_webhook_with_token_to_json(char buf[], size_t size, const struct discord_modify_webhook_with_token *self)
 
long discord_webhook_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_webhook *self)
 
size_t discord_modify_webhook_from_json(const char buf[], size_t size, struct discord_modify_webhook *self)
 
jsonbcode discord_modify_webhook_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_webhook *self)
 
jsonbcode discord_webhook_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_webhook *self)
 
void discord_create_webhook_cleanup(struct discord_create_webhook *self)
 
jsonbcode discord_edit_webhook_message_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_edit_webhook_message *self)
 
jsonbcode discord_execute_webhook_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_execute_webhook *self)
 
size_t discord_modify_webhook_to_json(char buf[], size_t size, const struct discord_modify_webhook *self)
 
void discord_webhooks_cleanup(struct discord_webhooks *self)
 
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
 
uint64_t u64bitmask
Bitmask primitive.
Definition: types.h:35
 
jsonbcode
json-builder return codes
Definition: json-build.h:34
 
Definition: channel.h:561
 
Definition: channel.h:393
 
Definition: channel.h:122
 
Definition: message_components.h:101
 
char * name
Definition: webhook.h:75
 
char * avatar
Definition: webhook.h:79
 
char * reason
Definition: webhook.h:73
 
Definition: webhook.h:182
 
u64snowflake thread_id
Definition: webhook.h:185
 
char * reason
Definition: webhook.h:98
 
Definition: webhook.h:158
 
char * content
Definition: webhook.h:164
 
struct discord_embeds * embeds
Definition: webhook.h:167
 
u64snowflake thread_id
Definition: webhook.h:161
 
struct discord_allowed_mention * allowed_mentions
Definition: webhook.h:171
 
struct discord_attachments * attachments
Definition: webhook.h:179
 
struct discord_components * components
Definition: webhook.h:175
 
Definition: channel.h:441
 
Definition: webhook.h:111
 
struct discord_allowed_mention * allowed_mentions
Definition: webhook.h:135
 
u64snowflake thread_id
Definition: webhook.h:119
 
char * content
Definition: webhook.h:122
 
struct discord_components * components
Definition: webhook.h:139
 
bool wait
Definition: webhook.h:116
 
char * avatar_url
Definition: webhook.h:126
 
struct discord_embeds * embeds
Definition: webhook.h:131
 
char * username
Definition: webhook.h:124
 
struct discord_attachments * attachments
Definition: webhook.h:143
 
bool tts
Definition: webhook.h:128
 
u64bitmask flags
Definition: webhook.h:148
 
Definition: webhook.h:151
 
u64snowflake thread_id
Definition: webhook.h:154
 
Definition: webhook.h:101
 
char * name
Definition: webhook.h:103
 
char * avatar
Definition: webhook.h:107
 
char * name
Definition: webhook.h:87
 
char * reason
Definition: webhook.h:85
 
u64snowflake channel_id
Definition: webhook.h:94
 
char * avatar
Definition: webhook.h:91
 
struct discord_user * user
Definition: webhook.h:46
 
char * url
Definition: webhook.h:61
 
u64snowflake application_id
Definition: webhook.h:53
 
u64snowflake channel_id
Definition: webhook.h:42
 
u64snowflake guild_id
Definition: webhook.h:40
 
struct discord_channel * source_channel
Definition: webhook.h:57
 
u64snowflake id
Definition: webhook.h:34
 
enum discord_webhook_types type
Definition: webhook.h:37
 
char * name
Definition: webhook.h:49
 
char * token
Definition: webhook.h:51
 
int size
Definition: webhook.h:64
 
struct discord_webhook * array
Definition: webhook.h:65
 
Handle for building a JSON string.
Definition: json-build.h:61