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

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

#include <AutoModerationEntities.hpp>

Inheritance diagram for DiscordCoreAPI::AutoModerationRule:

Additional Inherited Members

- Public Member Functions inherited from DiscordCoreAPI::DiscordEntity
std::string getCreatedAtTimestamp (TimeFormat timeFormat)
 Converts the snowflake-id into a time and date stamp.
- Public Data Members inherited from DiscordCoreAPI::AutoModerationRuleData
std::vector< ActionDataactions {}
 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.
EventType eventType {}
 The rule event type.
std::vector< Snowflake > exemptChannels {}
 The channel ids that should not be affected by the rule(Maximum of 50).
std::vector< Snowflake > exemptRoles {}
 The role ids that should not be affected by the rule(Maximum of 20).
Snowflake guildId {}
 The guild which this rule belongs to.
std::string name {}
 The rule name.
TriggerMetaData triggerMetaData {}
 The rule trigger metadata actions array of action objects the.
TriggerType triggerType {}
 The rule trigger type.
- Public Data Members inherited from DiscordCoreAPI::DiscordEntity
Snowflake id {}

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