-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
ThreadMembersUpdateEventArgs.cs
49 lines (40 loc) · 1.29 KB
/
ThreadMembersUpdateEventArgs.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
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
using DisCatSharp.Entities;
namespace DisCatSharp.EventArgs;
/// <summary>
/// Represents arguments for <see cref="DiscordClient.ThreadMembersUpdated"/> event.
/// </summary>
public class ThreadMembersUpdateEventArgs : DiscordEventArgs
{
/// <summary>
/// Gets the approximate number of members in the thread, capped at 50.
/// </summary>
public int MemberCount { get; internal set; }
/// <summary>
/// Gets the users who were removed from the thread.
/// </summary>
public IReadOnlyList<DiscordMember> RemovedMembers { get; internal set; }
/// <summary>
/// Gets the users who were added to the thread.
/// </summary>
public IReadOnlyList<DiscordThreadChannelMember> AddedMembers { get; internal set; }
/// <summary>
/// Gets the id of the thread.
/// </summary>
public ulong ThreadId { get; internal set; }
/// <summary>
/// Gets the id of the thread.
/// </summary>
public DiscordThreadChannel Thread { get; internal set; }
/// <summary>
/// Gets the guild.
/// </summary>
public DiscordGuild Guild { get; internal set; }
/// <summary>
/// Initializes a new instance of the <see cref="ThreadMembersUpdateEventArgs"/> class.
/// </summary>
internal ThreadMembersUpdateEventArgs(IServiceProvider provider)
: base(provider)
{ }
}