Table of Contents

Class AutomodRule

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents an auto mod rule.

public class AutomodRule : SnowflakeObject
Inheritance
AutomodRule
Inherited Members

Properties

Actions

The actions which will execute when the rule is triggered.

CreatorId

The id of the user who first created this rule.

Enabled

Whether the rule is enabled.

EventType

Gets the type of this rule.

ExemptChannels

The channel ids that should not be affected by the rule. Maximum of 50.

ExemptRoles

The role ids that should not be affected by the rule. Maximum of 20.

Guild
GuildId

Gets the id of the guild this rule belongs to.

Name

Gets the name of this rule.

TriggerMetadata

Gets the rule trigger meta data.

TriggerType

Gets the trigger type of this rule.

Methods

DeleteAsync(string)

Deletes this auto mod rule.

ModifyAsync(Action<AutomodRuleEditModel>)

Modifies this auto mod rule.