An interface class for the auto_moderation_rule_data related discord endpoints.
A co_routine - representing a potentially asynchronous operation/function.
For sending Https requests.
A class representing a snowflake identifier with various operations.
event_type
Event types for auto-moderation.
trigger_type
Trigger types for auto-moderation.
The main namespace for the forward-facing interfaces.
For representing a single auto-moderation-rule-action.
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.