Concord - C Discord API library
A Discord API wrapper library written in C
discord_auto_moderation_rule Struct Reference

#include <auto_moderation.h>

Collaboration diagram for discord_auto_moderation_rule:
[legend]

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_actionsactions
 
struct discord_auto_moderation_trigger_metadatatrigger_metadata
 
bool enabled
 
struct snowflakesexempt_roles
 
struct snowflakesexempt_channels
 

Detailed Description

Public methods

Field Documentation

◆ id

u64snowflake discord_auto_moderation_rule::id

the ID of this rule

◆ guild_id

u64snowflake discord_auto_moderation_rule::guild_id

the guild which this rule belongs to

◆ name

char* discord_auto_moderation_rule::name

the rule name

◆ creator_id

u64snowflake discord_auto_moderation_rule::creator_id

the ID of the user which first created this rule

◆ event_type

enum discord_auto_moderation_event_types discord_auto_moderation_rule::event_type

the rule event type

◆ trigger_type

enum discord_auto_moderation_trigger_types discord_auto_moderation_rule::trigger_type

the rule trigger type

◆ actions

struct discord_auto_moderation_actions* discord_auto_moderation_rule::actions

the actions which will execute when the rule is triggered

◆ trigger_metadata

struct discord_auto_moderation_trigger_metadata* discord_auto_moderation_rule::trigger_metadata

the actions which will execute when the rule is triggered

◆ enabled

bool discord_auto_moderation_rule::enabled

whether the rule is enabled

◆ exempt_roles

struct snowflakes* discord_auto_moderation_rule::exempt_roles

the role ids that should not be affected by the rule (Maximum of 20)

◆ exempt_channels

struct snowflakes* discord_auto_moderation_rule::exempt_channels

the channel ids that should not be affected by the rule (Maximum of 50)


The documentation for this struct was generated from the following file: