From c45f7bc9ab991cfff89c2ef3b4864c458c783335 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Tue, 16 May 2017 23:22:32 +0200 Subject: [PATCH] Guild owners can now use .setrole on anyone --- src/NadekoBot/Modules/Administration/Administration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index 70d8ca12..8fd0bf6c 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -118,7 +118,7 @@ namespace NadekoBot.Modules.Administration { var guser = (IGuildUser)Context.User; var maxRole = guser.GetRoles().Max(x => x.Position); - if (maxRole < role.Position || maxRole <= usr.GetRoles().Max(x => x.Position)) + if ((Context.User.Id != Context.Guild.OwnerId) && (maxRole < role.Position || maxRole <= usr.GetRoles().Max(x => x.Position))) return; try {