DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
discord_core_api::auto_moderation_rule_data Class Reference

Represents an auto-moderation-rule. More...

#include <FoundationEntities.hpp>

Public Data Members

jsonifier::vector< action_dataactions {}
 Actions which will execute when the rule is triggered.
 
snowflake creatorId {}
 The user which first created this rule.
 
bool enabled {}
 Whether the rule is enabled.
 
event_type eventType {}
 The rule event type.
 
jsonifier::vector< snowflakeexemptChannels {}
 The channel ids that should not be affected by the rule(maximum of 50).
 
jsonifier::vector< snowflakeexemptRoles {}
 The role ids that should not be affected by the rule(maximum of 20).
 
snowflake guildId {}
 The guild which this rule belongs to.
 
jsonifier::string name {}
 The rule name.
 
trigger_meta_data triggerMetaData {}
 The rule trigger metadata actions array of action objects the.
 
trigger_type triggerType {}
 The rule trigger type.
 

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