Browse Source

Added Server.IsOwner

tags/docs-0.9
RogueException 9 years ago
parent
commit
23d769a323
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net/Models/Server.cs

+ 2
- 0
src/Discord.Net/Models/Server.cs 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>


Loading…
Cancel
Save