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

For creating an auto-moderation-rule. More...

#include <AutoModerationEntities.hpp>

Public Data Members

jsonifier::vector< action_dataactions {}
 The actions which will execute when the rule is triggered.
 
bool enabled {}
 Whether the rule is enabled(false by default).
 
event_type eventType {}
 The 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 within which to create the auto_moderation_rule_data.
 
jsonifier::string name {}
 The rule name.
 
trigger_meta_data triggerMetadata {}
 The trigger metadata.
 
trigger_type triggerType {}
 The trigger type.
 

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