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.
38 lines
1.3 KiB
38 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 moving members between voice channels.
|
|
/// </summary>
|
|
public class MemberMoveAuditLogData : IAuditLogData
|
|
{
|
|
private MemberMoveAuditLogData(ulong channelId, int count)
|
|
{
|
|
ChannelId = channelId;
|
|
MemberCount = count;
|
|
}
|
|
|
|
internal static MemberMoveAuditLogData Create(BaseDiscordClient discord, Model log, EntryModel entry)
|
|
{
|
|
return new MemberMoveAuditLogData(entry.Options.ChannelId.Value, entry.Options.Count.Value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the ID of the channel that the members were moved to.
|
|
/// </summary>
|
|
/// <returns>
|
|
/// A <see cref="ulong"/> representing the snowflake identifier for the channel that the members were moved to.
|
|
/// </returns>
|
|
public ulong ChannelId { get; }
|
|
/// <summary>
|
|
/// Gets the number of members that were moved.
|
|
/// </summary>
|
|
/// <returns>
|
|
/// An <see cref="int"/> representing the number of members that were moved to another voice channel.
|
|
/// </returns>
|
|
public int MemberCount { get; }
|
|
}
|
|
}
|