Table of Contents

Class AutoModRuleActionProperties

Namespace
Discord
Assembly
Discord.Net.Core.dll

Provides properties used to modify a AutoModRuleAction.

public class AutoModRuleActionProperties
Inheritance
AutoModRuleActionProperties
Inherited Members

Properties

ChannelId

Get or sets the channel id on which to post alerts.

public ulong? ChannelId { get; set; }

Property Value

ulong?

CustomMessage

Gets or sets the custom message that will be shown to members whenever their message is blocked.

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

Property Value

Optional<string>

TimeoutDuration

Gets or sets the duration of which a user will be timed out for breaking this rule.

public TimeSpan? TimeoutDuration { get; set; }

Property Value

TimeSpan?

Type

Gets or sets the type for this action.

public AutoModActionType Type { get; set; }

Property Value

AutoModActionType