/
SocketMemberMoveAuditLogData.cs
36 lines (31 loc) · 1.18 KB
/
SocketMemberMoveAuditLogData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using EntryModel = Discord.API.AuditLogEntry;
namespace Discord.WebSocket;
/// <summary>
/// Contains a piece of audit log data related to moving members between voice channels.
/// </summary>
public class SocketMemberMoveAuditLogData : ISocketAuditLogData
{
private SocketMemberMoveAuditLogData(ulong channelId, int count)
{
ChannelId = channelId;
MemberCount = count;
}
internal static SocketMemberMoveAuditLogData Create(DiscordSocketClient discord, EntryModel entry)
{
return new SocketMemberMoveAuditLogData(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; }
}