94 auto_moderation_action_execution_event_data() =
default;
112 static void initialize(discord_core_internal::https_client*);
117 co_routine<jsonifier::vector<auto_moderation_rule_data>> listAutoModerationRulesForGuildAsync(list_auto_moderation_rules_for_guild_data dataPackage);
122 co_routine<auto_moderation_rule_data> getAutoModerationRuleAsync(get_auto_moderation_rule_data dataPackage);
127 co_routine<auto_moderation_rule_data> createAutoModerationRuleAsync(create_auto_moderation_rule_data dataPackage);
132 co_routine<auto_moderation_rule_data> modifyAutoModerationRuleAsync(modify_auto_moderation_rule_data dataPackage);
137 co_routine<void> deleteAutoModerationRuleAsync(delete_auto_moderation_rule_data dataPackage);
140 static discord_core_internal::https_client* httpsClient;
An interface class for the auto_moderation_rule_data related discord endpoints.
event_type
Event types for auto-moderation.
trigger_type
Trigger types for auto-moderation.
The main namespace for the forward-facing interfaces.
For when an auto-moderation-rule is executed.
trigger_type ruleTriggerType
The trigger type of rule which was triggered.
action_data action
The action which was executed.
snowflake alertSystemMessageId
The id of any system auto moderation messages posted as a result of this action.
jsonifier::string content
The user generated text content.
snowflake channelId
The id of the channel in which user content was posted.
snowflake guildId
The id of the guild in which action was executed.
snowflake userId
The id of the user which generated the content which triggered the rule.
jsonifier::string matchedKeyword
The word or phrase configured in the rule that triggered the rule.
snowflake ruleId
The id of the rule which action belongs to.
snowflake messageId
The id of any user message which content belongs to.
jsonifier::string matchedContent
The substring in content that triggered the rule.
For creating an auto-moderation-rule.
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).
trigger_type triggerType
The trigger type.
jsonifier::vector< action_data > actions
The actions which will execute when the rule is triggered.
snowflake guildId
The guild within which to create the auto_moderation_rule_data.
event_type eventType
The event type.
jsonifier::string name
The rule name.
trigger_meta_data triggerMetadata
The trigger metadata.
bool enabled
Whether the rule is enabled(false by default).
For deleting an auto-moderation-rule.
snowflake guildId
Guild within which to delete the auto-moderation-rule.
snowflake autoModerationRuleId
The id of the auto-moderation-rule you would like to delete.
For collecting an auto-moderation-rule for a particular auto_moderation_rule_data.
snowflake autoModerationRuleId
The id of the auto-moderation-rule you would like to collect.
snowflake guildId
The id of the guild from which you would like to collect the auto-moderation-rule from.
For listing all of the auto-moderation-rules for a particular guild .
snowflake guildId
The id of the guild for which you would like to list the auto-moderation rules.
For modifying an auto-moderation-rule.
jsonifier::vector< snowflake > exemptChannels
The channel ids that should not be affected by the rule(maximum of 50).
jsonifier::vector< action_data > actions
The actions which will execute when the rule is triggered.
jsonifier::string name
The rule name.
jsonifier::vector< snowflake > exemptRoles
The role ids that should not be affected by the rule(maximum of 20).
event_type eventType
The event type.
bool enabled
Whether the rule is enabled(false by default).
snowflake guildId
The auto_moderation_rule_data within which to modify the auto-moderation-rule.
snowflake autoModerationRuleId
The id of the auto-moderation-rule you would like to modify.
trigger_meta_data triggerMetadata
The trigger metadata.