Added Server.IsOwner

This commit is contained in:
RogueException
2015-12-31 01:59:31 -04:00
parent 9d504ea9c1
commit 23d769a323

View File

@@ -57,6 +57,8 @@ namespace Discord
/// <summary> Gets the user that created this server. </summary>
public User Owner => GetUser(_ownerId);
/// <summary> Returns true if the current user owns this server. </summary>
public bool IsOwner => _ownerId == Client.CurrentUser.Id;
/// <summary> Gets the AFK voice channel for this server. </summary>
public Channel AFKChannel => _afkChannelId != null ? GetChannel(_afkChannelId.Value) : null;
/// <summary> Gets the current user in this server. </summary>