Fixed Server.CurrentMember, renamed to CurrentUser
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Discord
|
|||||||
/// <summary> Returns the name of this channel. </summary>
|
/// <summary> Returns the name of this channel. </summary>
|
||||||
public string Name { get; private set; }
|
public string Name { get; private set; }
|
||||||
/// <summary> Returns the current logged-in user's data for this server. </summary>
|
/// <summary> Returns the current logged-in user's data for this server. </summary>
|
||||||
public User CurrentMember { get; internal set; }
|
public User CurrentUser { get; internal set; }
|
||||||
|
|
||||||
/// <summary> Returns the amount of time (in seconds) a user must be inactive for until they are automatically moved to the AFK channel (see AFKChannel). </summary>
|
/// <summary> Returns the amount of time (in seconds) a user must be inactive for until they are automatically moved to the AFK channel (see AFKChannel). </summary>
|
||||||
public int AFKTimeout { get; private set; }
|
public int AFKTimeout { get; private set; }
|
||||||
|
|||||||
@@ -121,14 +121,14 @@ namespace Discord
|
|||||||
x =>
|
x =>
|
||||||
{
|
{
|
||||||
x.AddMember(this);
|
x.AddMember(this);
|
||||||
if (x.Id == _client.CurrentUserId)
|
if (Id == _client.CurrentUserId)
|
||||||
x.CurrentMember = this;
|
x.CurrentUser = this;
|
||||||
},
|
},
|
||||||
x =>
|
x =>
|
||||||
{
|
{
|
||||||
x.RemoveMember(this);
|
x.RemoveMember(this);
|
||||||
if (x.Id == _client.CurrentUserId)
|
if (Id == _client.CurrentUserId)
|
||||||
x.CurrentMember = null;
|
x.CurrentUser = null;
|
||||||
});
|
});
|
||||||
Status = UserStatus.Offline;
|
Status = UserStatus.Offline;
|
||||||
_channels = new ConcurrentDictionary<string, Channel>();
|
_channels = new ConcurrentDictionary<string, Channel>();
|
||||||
|
|||||||
Reference in New Issue
Block a user