@@ -7,21 +7,21 @@ namespace Discord.WebSocket;
|
||||
/// </summary>
|
||||
public class SocketAutoModFlaggedMessageAuditLogData : ISocketAuditLogData
|
||||
{
|
||||
internal SocketAutoModFlaggedMessageAuditLogData(ulong channelId, string autoModRuleName, AutoModTriggerType autoModRuleTriggerType)
|
||||
internal SocketAutoModFlaggedMessageAuditLogData(ulong? channelId, string autoModRuleName, AutoModTriggerType autoModRuleTriggerType)
|
||||
{
|
||||
ChannelId = channelId;
|
||||
ChannelId = channelId ?? 0;
|
||||
AutoModRuleName = autoModRuleName;
|
||||
AutoModRuleTriggerType = autoModRuleTriggerType;
|
||||
}
|
||||
|
||||
internal static SocketAutoModFlaggedMessageAuditLogData Create(DiscordSocketClient discord, EntryModel entry)
|
||||
{
|
||||
return new(entry.Options.ChannelId!.Value, entry.Options.AutoModRuleName,
|
||||
return new(entry.Options.ChannelId, entry.Options.AutoModRuleName,
|
||||
entry.Options.AutoModRuleTriggerType!.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the channel the message was sent in.
|
||||
/// Gets the channel the message was sent in. Will be 0 if a user profile was flagged.
|
||||
/// </summary>
|
||||
public ulong ChannelId { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user