using Model = Discord.API.AuditLog; using EntryModel = Discord.API.AuditLogEntry; namespace Discord.Rest { /// /// Contains a piece of audit log data related to message deletion(s). /// public class MessageBulkDeleteAuditLogData : IAuditLogData { private MessageBulkDeleteAuditLogData(ulong channelId, int count) { ChannelId = channelId; MessageCount = count; } internal static MessageBulkDeleteAuditLogData Create(BaseDiscordClient discord, Model log, EntryModel entry) { return new MessageBulkDeleteAuditLogData(entry.TargetId.Value, entry.Options.Count.Value); } /// /// Gets the ID of the channel that the messages were deleted from. /// /// /// A representing the snowflake identifier for the channel that the messages were /// deleted from. /// public ulong ChannelId { get; } /// /// Gets the number of messages that were deleted. /// /// /// An representing the number of messages that were deleted from the channel. /// public int MessageCount { get; } } }