From 5fa39eaa9f1dafe1d9f87878aedf8711dbf11be1 Mon Sep 17 00:00:00 2001 From: Alan Beatty Date: Mon, 13 Dec 2021 13:07:00 +0000 Subject: [PATCH] Clarity on qdel --- src/NadekoBot/Modules/Utility/QuoteCommands.cs | 4 ++-- src/NadekoBot/data/strings/commands/commands.en-US.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Utility/QuoteCommands.cs b/src/NadekoBot/Modules/Utility/QuoteCommands.cs index 475cd6eb8..014c8890c 100644 --- a/src/NadekoBot/Modules/Utility/QuoteCommands.cs +++ b/src/NadekoBot/Modules/Utility/QuoteCommands.cs @@ -208,7 +208,7 @@ namespace NadekoBot.Modules.Utility [RequireContext(ContextType.Guild)] public async Task QuoteDelete(int id) { - var isAdmin = ((IGuildUser)ctx.Message.Author).GuildPermissions.ManageMessages; + var hasManageMessages = ((IGuildUser)ctx.Message.Author).GuildPermissions.ManageMessages; var success = false; string response; @@ -216,7 +216,7 @@ namespace NadekoBot.Modules.Utility { var q = uow.Quotes.GetById(id); - if ((q?.GuildId != ctx.Guild.Id) || (!isAdmin && q.AuthorId != ctx.Message.Author.Id)) + if ((q?.GuildId != ctx.Guild.Id) || (!hasManageMessages && q.AuthorId != ctx.Message.Author.Id)) { response = GetText(strs.quotes_remove_none); } diff --git a/src/NadekoBot/data/strings/commands/commands.en-US.yml b/src/NadekoBot/data/strings/commands/commands.en-US.yml index ed55d9dd0..8087c611e 100644 --- a/src/NadekoBot/data/strings/commands/commands.en-US.yml +++ b/src/NadekoBot/data/strings/commands/commands.en-US.yml @@ -611,7 +611,7 @@ quoteid: args: - "123456" quotedelete: - desc: "Deletes a quote with the specified ID. You have to be either server Administrator or the creator of the quote to delete it." + desc: "Deletes a quote with the specified ID. You have to either have the Manage Messages permission or be the creator of the quote to delete it." args: - "123456" draw: