From 9ae3b66fc2c75cc32a1db19492b5cc8217887c76 Mon Sep 17 00:00:00 2001 From: tbodt Date: Wed, 27 Oct 2021 01:25:40 +0000 Subject: [PATCH] Reduce required permissions for deleting quotes --- src/NadekoBot/Modules/Utility/QuoteCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Utility/QuoteCommands.cs b/src/NadekoBot/Modules/Utility/QuoteCommands.cs index 3e8d3a56e..e2e2bcb79 100644 --- a/src/NadekoBot/Modules/Utility/QuoteCommands.cs +++ b/src/NadekoBot/Modules/Utility/QuoteCommands.cs @@ -205,7 +205,7 @@ namespace NadekoBot.Modules.Utility [RequireContext(ContextType.Guild)] public async Task QuoteDelete(int id) { - var isAdmin = ((IGuildUser)ctx.Message.Author).GuildPermissions.Administrator; + var isAdmin = ((IGuildUser)ctx.Message.Author).GuildPermissions.ManageMessages; var success = false; string response; @@ -233,7 +233,7 @@ namespace NadekoBot.Modules.Utility [NadekoCommand, Aliases] [RequireContext(ContextType.Guild)] - [UserPerm(GuildPerm.Administrator)] + [UserPerm(GuildPerm.ManageMessages)] public async Task DelAllQuotes([Leftover] string keyword) { if (string.IsNullOrWhiteSpace(keyword))