Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <auto_moderation.h>
Data Fields | |
u64snowflake | id |
u64snowflake | guild_id |
char * | name |
u64snowflake | creator_id |
enum discord_auto_moderation_event_types | event_type |
enum discord_auto_moderation_trigger_types | trigger_type |
struct discord_auto_moderation_actions * | actions |
struct discord_auto_moderation_trigger_metadata * | trigger_metadata |
bool | enabled |
struct snowflakes * | exempt_roles |
struct snowflakes * | exempt_channels |
Public methods
discord_auto_moderation_rule_from_json(const char json[], size_t len, struct discord_auto_moderation_rule *this)
discord_auto_moderation_rule_from_jsmnf(jsmnf *root, const char json[], struct discord_auto_moderation_rule *this)
discord_auto_moderation_rule_to_json(char buf[], size_t size, const struct discord_auto_moderation_rule *this)
discord_auto_moderation_rule_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_auto_moderation_rule *this)
u64snowflake discord_auto_moderation_rule::id |
the ID of this rule
u64snowflake discord_auto_moderation_rule::guild_id |
the guild which this rule belongs to
char* discord_auto_moderation_rule::name |
the rule name
u64snowflake discord_auto_moderation_rule::creator_id |
the ID of the user which first created this rule
enum discord_auto_moderation_event_types discord_auto_moderation_rule::event_type |
the rule event type
enum discord_auto_moderation_trigger_types discord_auto_moderation_rule::trigger_type |
the rule trigger type
struct discord_auto_moderation_actions* discord_auto_moderation_rule::actions |
the actions which will execute when the rule is triggered
struct discord_auto_moderation_trigger_metadata* discord_auto_moderation_rule::trigger_metadata |
the actions which will execute when the rule is triggered
bool discord_auto_moderation_rule::enabled |
whether the rule is enabled
struct snowflakes* discord_auto_moderation_rule::exempt_roles |
the role ids that should not be affected by the rule (Maximum of 20)
struct snowflakes* discord_auto_moderation_rule::exempt_channels |
the channel ids that should not be affected by the rule (Maximum of 50)