You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
using Model = Discord.API.AuditLog;
|
|
using EntryModel = Discord.API.AuditLogEntry;
|
|
|
|
namespace Discord.Rest
|
|
{
|
|
/// <summary>
|
|
/// Contains a piece of audit log data related to message deletion(s).
|
|
/// </summary>
|
|
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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the ID of the channel that the messages were deleted from.
|
|
/// </summary>
|
|
/// <returns>
|
|
/// A <see cref="ulong"/> representing the snowflake identifier for the channel that the messages were
|
|
/// deleted from.
|
|
/// </returns>
|
|
public ulong ChannelId { get; }
|
|
/// <summary>
|
|
/// Gets the number of messages that were deleted.
|
|
/// </summary>
|
|
/// <returns>
|
|
/// An <see cref="int"/> representing the number of messages that were deleted from the channel.
|
|
/// </returns>
|
|
public int MessageCount { get; }
|
|
}
|
|
}
|