![]() |
DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
For creating an auto-moderation-rule. More...
#include <AutoModerationEntities.hpp>
Public Data Members | |
jsonifier::vector< action_data > | actions {} |
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< snowflake > | exemptChannels {} |
The channel ids that should not be affected by the rule(maximum of 50). | |
jsonifier::vector< snowflake > | exemptRoles {} |
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. | |