diff --git a/src/Discord.Net.Rest/Entities/AuditLogs/DataTypes/MessageDeleteAuditLogData.cs b/src/Discord.Net.Rest/Entities/AuditLogs/DataTypes/MessageDeleteAuditLogData.cs index 317d47648e..c6b2e10532 100644 --- a/src/Discord.Net.Rest/Entities/AuditLogs/DataTypes/MessageDeleteAuditLogData.cs +++ b/src/Discord.Net.Rest/Entities/AuditLogs/DataTypes/MessageDeleteAuditLogData.cs @@ -1,4 +1,4 @@ -using Model = Discord.API.AuditLog; +using Model = Discord.API.AuditLog; using EntryModel = Discord.API.AuditLogEntry; namespace Discord.Rest @@ -8,15 +8,16 @@ namespace Discord.Rest /// public class MessageDeleteAuditLogData : IAuditLogData { - private MessageDeleteAuditLogData(ulong channelId, int count) + private MessageDeleteAuditLogData(ulong channelId, int count, ulong authorId) { ChannelId = channelId; MessageCount = count; + AuthorId = authorId; } internal static MessageDeleteAuditLogData Create(BaseDiscordClient discord, Model log, EntryModel entry) { - return new MessageDeleteAuditLogData(entry.Options.MessageDeleteChannelId.Value, entry.Options.MessageDeleteCount.Value); + return new MessageDeleteAuditLogData(entry.Options.MessageDeleteChannelId.Value, entry.Options.MessageDeleteCount.Value, entry.TargetId.Value); } /// @@ -34,5 +35,12 @@ internal static MessageDeleteAuditLogData Create(BaseDiscordClient discord, Mode /// deleted from. /// public ulong ChannelId { get; } + /// + /// Gets the author of the messages that were deleted. + /// + /// + /// A representing the snowflake identifier for the user that created the deleted messages. + /// + public ulong AuthorId { get; } } }