Table of Contents

Class AutoModRuleAction

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents an action that will be preformed if a user breaks an IAutoModRule.

public class AutoModRuleAction
Inheritance
AutoModRuleAction
Inherited Members

Properties

ChannelId

Get the channel id on which to post alerts. null if no channel has been provided.

public ulong? ChannelId { get; }

Property Value

ulong?

CustomMessage

Gets the custom message that will be shown to members whenever their message is blocked. null if no message has been set.

public Optional<string> CustomMessage { get; set; }

Property Value

Optional<string>

TimeoutDuration

Gets the duration of which a user will be timed out for breaking this rule. null if no timeout duration has been provided.

public TimeSpan? TimeoutDuration { get; }

Property Value

TimeSpan?

Type

Gets the type for this action.

public AutoModActionType Type { get; }

Property Value

AutoModActionType