Table of Contents

Class AutoModActionExecutedData

Namespace
Discord.WebSocket
Assembly
Discord.Net.WebSocket.dll
public class AutoModActionExecutedData
Inheritance
AutoModActionExecutedData
Inherited Members

Properties

AlertMessageId

Gets the id of the system auto moderation messages posted as a result of this action.

public ulong AlertMessageId { get; }

Property Value

ulong

Remarks

This property will be null if this event does not correspond to an action with type SendAlertMessage.

Channel

Gets the channel in which user content was posted.

public Cacheable<ISocketMessageChannel, ulong> Channel { get; }

Property Value

Cacheable<ISocketMessageChannel, ulong>

Content

Gets the user-generated text content.

public string Content { get; }

Property Value

string

Remarks

This property will be empty if MessageContent is disabled.

MatchedContent

Gets the substring in content that triggered the rule.

public string MatchedContent { get; }

Property Value

string

Remarks

This property will be empty if MessageContent is disabled.

MatchedKeyword

Gets the word or phrase configured in the rule that triggered the rule.

public string MatchedKeyword { get; }

Property Value

string

Message

Gets the message that triggered the action.

public Cacheable<IUserMessage, ulong>? Message { get; }

Property Value

Cacheable<IUserMessage, ulong>?

Remarks

This property will be null if the message was blocked by the automod.

Rule

Gets the id of the rule which action belongs to.

public Cacheable<IAutoModRule, ulong> Rule { get; }

Property Value

Cacheable<IAutoModRule, ulong>

TriggerType

Gets the trigger type of rule which was triggered.

public AutoModTriggerType TriggerType { get; }

Property Value

AutoModTriggerType

User

Gets the user which generated the content which triggered the rule.

public Cacheable<SocketGuildUser, ulong> User { get; }

Property Value

Cacheable<SocketGuildUser, ulong>