From b9b42afe873e155f7742478aca2f614d40e31a4c Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sat, 22 Oct 2016 09:31:36 +0200 Subject: [PATCH] Fixed preconditions on some mute commands --- src/NadekoBot/Modules/Administration/Administration.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index d680859c..5a050a67 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -433,6 +433,7 @@ namespace NadekoBot.Modules.Administration [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] + [RequirePermission(GuildPermission.ManageRoles)] [RequirePermission(GuildPermission.MuteMembers)] public async Task Mute(IUserMessage umsg, IGuildUser user) { @@ -452,6 +453,7 @@ namespace NadekoBot.Modules.Administration [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] + [RequirePermission(GuildPermission.ManageRoles)] [RequirePermission(GuildPermission.MuteMembers)] public async Task Unmute(IUserMessage umsg, IGuildUser user) { @@ -471,7 +473,7 @@ namespace NadekoBot.Modules.Administration [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] - [RequirePermission(GuildPermission.MuteMembers)] + [RequirePermission(GuildPermission.ManageRoles)] public async Task TextMute(IUserMessage umsg, IGuildUser user) { var channel = (ITextChannel)umsg.Channel; @@ -489,7 +491,7 @@ namespace NadekoBot.Modules.Administration [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] - [RequirePermission(GuildPermission.MuteMembers)] + [RequirePermission(GuildPermission.ManageRoles)] public async Task TextUnmute(IUserMessage umsg, IGuildUser user) { var channel = (ITextChannel)umsg.Channel;