Class AutoModActionExecutedData
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
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
Content
Gets the user-generated text content.
public string Content { get; }
Property Value
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
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
Message
Gets the message that triggered the action.
public Cacheable<IUserMessage, ulong>? Message { get; }
Property Value
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
TriggerType
Gets the trigger type of rule which was triggered.
public AutoModTriggerType TriggerType { get; }
Property Value
User
Gets the user which generated the content which triggered the rule.
public Cacheable<SocketGuildUser, ulong> User { get; }