6#ifndef API_AUTO_MODERATION_H
7#define API_AUTO_MODERATION_H
size_t discord_create_auto_moderation_rule_from_json(const char buf[], size_t size, struct discord_create_auto_moderation_rule *self)
jsonbcode discord_modify_auto_moderation_rule_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_auto_moderation_rule *self)
jsonbcode discord_create_auto_moderation_rule_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_auto_moderation_rule *self)
void discord_create_auto_moderation_rule_cleanup(struct discord_create_auto_moderation_rule *self)
void discord_modify_auto_moderation_rule_init(struct discord_modify_auto_moderation_rule *self)
size_t discord_auto_moderation_rules_from_json(const char buf[], size_t size, struct discord_auto_moderation_rules *self)
discord_auto_moderation_keyword_preset_types
Definition: auto_moderation.h:45
@ DISCORD_AUTO_MODERATION_SLURS
Definition: auto_moderation.h:51
@ DISCORD_AUTO_MODERATION_SEXUAL_CONTENT
Definition: auto_moderation.h:49
@ DISCORD_AUTO_MODERATION_PROFANITY
Definition: auto_moderation.h:47
void discord_create_auto_moderation_rule_init(struct discord_create_auto_moderation_rule *self)
void discord_auto_moderation_rule_init(struct discord_auto_moderation_rule *self)
long discord_auto_moderation_rules_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_auto_moderation_rules *self)
discord_auto_moderation_action_types
Definition: auto_moderation.h:57
@ DISCORD_AUTO_MODERATION_ACTION_BLOCK_MESSAGE
Definition: auto_moderation.h:59
@ DISCORD_AUTO_MODERATION_ACTION_TIMEOUT
Definition: auto_moderation.h:63
@ DISCORD_AUTO_MODERATION_ACTION_SEND_ALERT_MESSAGE
Definition: auto_moderation.h:61
long discord_create_auto_moderation_rule_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_auto_moderation_rule *self)
void discord_modify_auto_moderation_rule_cleanup(struct discord_modify_auto_moderation_rule *self)
discord_auto_moderation_event_types
Definition: auto_moderation.h:53
@ DISCORD_AUTO_MODERATION_MESSAGE_SEND
Definition: auto_moderation.h:55
void discord_auto_moderation_rule_cleanup(struct discord_auto_moderation_rule *self)
size_t discord_auto_moderation_rule_from_json(const char buf[], size_t size, struct discord_auto_moderation_rule *self)
discord_auto_moderation_trigger_types
Characterizes the type of content which can trigger the rule.
Definition: auto_moderation.h:23
@ DISCORD_AUTO_MODERATION_KEYWORD
Definition: auto_moderation.h:28
@ DISCORD_AUTO_MODERATION_KEYWORD_PRESET
Definition: auto_moderation.h:43
@ DISCORD_AUTO_MODERATION_SPAM
Definition: auto_moderation.h:38
@ DISCORD_AUTO_MODERATION_HARMFUL_LINK
Definition: auto_moderation.h:33
size_t discord_modify_auto_moderation_rule_from_json(const char buf[], size_t size, struct discord_modify_auto_moderation_rule *self)
size_t discord_modify_auto_moderation_rule_to_json(char buf[], size_t size, const struct discord_modify_auto_moderation_rule *self)
size_t discord_create_auto_moderation_rule_to_json(char buf[], size_t size, const struct discord_create_auto_moderation_rule *self)
long discord_modify_auto_moderation_rule_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_auto_moderation_rule *self)
void discord_auto_moderation_rules_cleanup(struct discord_auto_moderation_rules *self)
long discord_auto_moderation_rule_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_auto_moderation_rule *self)
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
jsonbcode
json-builder return codes
Definition: json-build.h:34
Definition: auto_moderation.h:78
enum discord_auto_moderation_action_types type
Definition: auto_moderation.h:81
struct discord_auto_moderation_action_metadata * metadata
Definition: auto_moderation.h:87
Definition: auto_moderation.h:90
int size
Definition: auto_moderation.h:90
struct discord_auto_moderation_action * array
Definition: auto_moderation.h:91
Definition: auto_moderation.h:111
enum discord_auto_moderation_trigger_types trigger_type
Definition: auto_moderation.h:126
u64snowflake guild_id
Definition: auto_moderation.h:115
enum discord_auto_moderation_event_types event_type
Definition: auto_moderation.h:122
bool enabled
Definition: auto_moderation.h:133
struct snowflakes * exempt_channels
Definition: auto_moderation.h:137
u64snowflake id
Definition: auto_moderation.h:113
struct discord_auto_moderation_actions * actions
Definition: auto_moderation.h:129
char * name
Definition: auto_moderation.h:117
struct discord_auto_moderation_trigger_metadata * trigger_metadata
Definition: auto_moderation.h:131
u64snowflake creator_id
Definition: auto_moderation.h:119
struct snowflakes * exempt_roles
Definition: auto_moderation.h:135
Definition: auto_moderation.h:140
struct discord_auto_moderation_rule * array
Definition: auto_moderation.h:141
int size
Definition: auto_moderation.h:140
Definition: auto_moderation.h:147
char * name
Definition: auto_moderation.h:151
struct snowflakes * exempt_channels
Definition: auto_moderation.h:176
struct discord_auto_moderation_trigger_metadata * trigger_metadata
Definition: auto_moderation.h:166
enum discord_auto_moderation_event_types event_type
Definition: auto_moderation.h:154
struct discord_auto_moderation_actions * actions
Definition: auto_moderation.h:162
struct snowflakes * exempt_roles
Definition: auto_moderation.h:172
char * reason
Definition: auto_moderation.h:149
bool enabled
Definition: auto_moderation.h:169
enum discord_auto_moderation_trigger_types trigger_type
Definition: auto_moderation.h:158
Definition: auto_moderation.h:210
char * reason
Definition: auto_moderation.h:212
Definition: auto_moderation.h:180
struct discord_auto_moderation_actions * actions
Definition: auto_moderation.h:197
char * reason
Definition: auto_moderation.h:182
bool enabled
Definition: auto_moderation.h:200
struct snowflakes * exempt_channels
Definition: auto_moderation.h:207
struct snowflakes * exempt_roles
Definition: auto_moderation.h:203
enum discord_auto_moderation_event_types event_type
Definition: auto_moderation.h:189
char * name
Definition: auto_moderation.h:185
struct discord_auto_moderation_trigger_metadata * trigger_metadata
Definition: auto_moderation.h:193
Handle for building a JSON string.
Definition: json-build.h:61