From 23d769a323b4e554972dac5e87887170c5997a0f Mon Sep 17 00:00:00 2001 From: RogueException Date: Thu, 31 Dec 2015 01:59:31 -0400 Subject: [PATCH] Added Server.IsOwner --- src/Discord.Net/Models/Server.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Discord.Net/Models/Server.cs b/src/Discord.Net/Models/Server.cs index 7f282b45c..e54680d34 100644 --- a/src/Discord.Net/Models/Server.cs +++ b/src/Discord.Net/Models/Server.cs @@ -57,6 +57,8 @@ namespace Discord /// Gets the user that created this server. public User Owner => GetUser(_ownerId); + /// Returns true if the current user owns this server. + public bool IsOwner => _ownerId == Client.CurrentUser.Id; /// Gets the AFK voice channel for this server. public Channel AFKChannel => _afkChannelId != null ? GetChannel(_afkChannelId.Value) : null; /// Gets the current user in this server.