Generated code.
More...
#include <stddef.h>
#include <stdbool.h>
#include <inttypes.h>
#include "carray.h"
#include "cog-utils.h"
#include "types.h"
#include "jsmn.h"
#include "jsmn-find.h"
#include "json-build.h"
Go to the source code of this file.
|
void | discord_auto_moderation_rule_init (struct discord_auto_moderation_rule *self) |
|
void | discord_auto_moderation_rule_cleanup (struct discord_auto_moderation_rule *self) |
|
void | discord_auto_moderation_rules_cleanup (struct discord_auto_moderation_rules *self) |
|
void | discord_create_auto_moderation_rule_init (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) |
|
void | discord_modify_auto_moderation_rule_cleanup (struct discord_modify_auto_moderation_rule *self) |
|
long | discord_auto_moderation_rule_from_jsmnf (jsmnf_pair *root, const char *js, 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) |
|
long | discord_auto_moderation_rules_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_auto_moderation_rules *self) |
|
size_t | discord_auto_moderation_rules_from_json (const char buf[], size_t size, struct discord_auto_moderation_rules *self) |
|
long | discord_create_auto_moderation_rule_from_jsmnf (jsmnf_pair *root, const char *js, struct discord_create_auto_moderation_rule *self) |
|
size_t | discord_create_auto_moderation_rule_from_json (const char buf[], size_t size, 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) |
|
size_t | discord_modify_auto_moderation_rule_from_json (const char buf[], size_t size, 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) |
|
size_t | discord_create_auto_moderation_rule_to_json (char buf[], size_t size, const 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) |
|
size_t | discord_modify_auto_moderation_rule_to_json (char buf[], size_t size, const struct discord_modify_auto_moderation_rule *self) |
|
Generated code.
- Author
- Cogmasters
◆ JSMN_STRICT
◆ JSMN_HEADER
◆ JSONB_HEADER
◆ discord_auto_moderation_trigger_types
Characterizes the type of content which can trigger the rule.
Enumerator |
---|
DISCORD_AUTO_MODERATION_KEYWORD | check if content contains words from a user defined list of keywords - Note
- maximum 3 per guild
|
DISCORD_AUTO_MODERATION_HARMFUL_LINK | check if content contains any harmful links - Note
- maximum 1 per guild
|
DISCORD_AUTO_MODERATION_SPAM | check if content represents generic spam - Note
- maximum 1 per guild
|
DISCORD_AUTO_MODERATION_KEYWORD_PRESET | check if content contains words from internal pre-defined wordsets - Note
- maximum 1 per guild
|
◆ discord_auto_moderation_keyword_preset_types
Enumerator |
---|
DISCORD_AUTO_MODERATION_PROFANITY | words that may be considered forms of swearing or cursing
|
DISCORD_AUTO_MODERATION_SEXUAL_CONTENT | words that refer to sexually explicit behavior or activity
|
DISCORD_AUTO_MODERATION_SLURS | personal insults or words that may be considered hate speech
|
◆ discord_auto_moderation_event_types
Enumerator |
---|
DISCORD_AUTO_MODERATION_MESSAGE_SEND | when a member sends or edits a message in the guild
|
◆ discord_auto_moderation_action_types
Enumerator |
---|
DISCORD_AUTO_MODERATION_ACTION_BLOCK_MESSAGE | blocks the content of a message according to the rule
|
DISCORD_AUTO_MODERATION_ACTION_SEND_ALERT_MESSAGE | logs user content to a specified channel
|
DISCORD_AUTO_MODERATION_ACTION_TIMEOUT | timeout user for a specified duration
|
◆ discord_auto_moderation_rule_init()
◆ discord_auto_moderation_rule_cleanup()
◆ discord_auto_moderation_rules_cleanup()
◆ discord_create_auto_moderation_rule_init()
◆ discord_create_auto_moderation_rule_cleanup()
◆ discord_modify_auto_moderation_rule_init()
◆ discord_modify_auto_moderation_rule_cleanup()
◆ discord_auto_moderation_rule_from_jsmnf()
◆ discord_auto_moderation_rule_from_json()
◆ discord_auto_moderation_rules_from_jsmnf()
◆ discord_auto_moderation_rules_from_json()
◆ discord_create_auto_moderation_rule_from_jsmnf()
◆ discord_create_auto_moderation_rule_from_json()
◆ discord_modify_auto_moderation_rule_from_jsmnf()
◆ discord_modify_auto_moderation_rule_from_json()
◆ discord_create_auto_moderation_rule_to_jsonb()
◆ discord_create_auto_moderation_rule_to_json()
◆ discord_modify_auto_moderation_rule_to_jsonb()
◆ discord_modify_auto_moderation_rule_to_json()