diff --git a/src/NadekoBot/Modules/Utility/QuoteCommands.cs b/src/NadekoBot/Modules/Utility/QuoteCommands.cs index 1d18d3af6..1971b1187 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: