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

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

#include <AutoModerationEntities.hpp>

Public Data Members

std::vector< ActionDataactions {}
 The actions which will execute when the rule is triggered.
 
bool enabled {}
 Whether the rule is enabled(False by default).
 
EventType eventType {}
 The event type.
 
std::vector< uint64_t > exemptChannels {}
 The channel ids that should not be affected by the rule(Maximum of 50).
 
std::vector< uint64_t > exemptRoles {}
 The role ids that should not be affected by the rule(Maximum of 20).
 
Snowflake guildId {}
 The Guild within which to create the AutoModerationRule.
 
std::string name {}
 The rule name.
 
TriggerMetaData triggerMetadata {}
 The trigger metadata.
 
TriggerType triggerType {}
 The trigger type.
 

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