Table of Contents

Class DiscordAutoModerationRule

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Represents a Discord auto-moderation rule.

public class DiscordAutoModerationRule : SnowflakeObject
Inheritance
object
DiscordAutoModerationRule
Inherited Members

Properties

Actions

Gets actions which will execute when the rule is triggered.

Creator

Gets the user that created the rule.

EventType

Gets the rule event type.

ExemptChannels

Gets ids of channels in which rule will be not triggered.

ExemptRoles

Gets ids of roles that will not trigger the rule.

Guild

Gets the guild which the rule is in.

IsEnabled

Gets whether the rule is enabled.

Metadata

Gets the additional data to determine whether a rule should be triggered.

Name

Gets the rule name.

TriggerType

Gets the rule trigger type.

Methods

DeleteAsync(string?)

Deletes the rule in the guild.

ModifyAsync(Action<AutoModerationRuleEditModel>)

Modify the rule in the guild.