AutoModRule
- class AutoModRule()
An Auto Moderation rule configured for a guild.
exported from
lib.weeble.dProperties
- AutoModRule.actions
type: readonly
AutoModAction[]Actions taken when this rule is triggered.
- AutoModRule.createdAt
type: readonly Date
When this auto moderation rule was created, decoded from the rule snowflake.
- AutoModRule.eventType
type: readonly 1
The type of event that triggers this rule.
- AutoModRule.triggerMetadata
type: readonly
AutoModTriggerMetadataMetadata specific to the trigger type.
- AutoModRule.triggerType
type: readonly
AutoModTriggerTypeThe type of trigger used by this rule.
Methods
- async AutoModRule.delete(reason: string) Promise<void>
Delete this rule.
- Parameters:
reason — – Reason for deletion, shown in audit log.
-
async AutoModRule.edit(options:
AutoModRuleEditOptions) Promise<AutoModRule> Edit rule properties.
- Parameters:
options — – Rule properties to update.
- Returns:
The updated rule.