Clarity on qdel

This commit is contained in:
Alan Beatty
2021-12-13 13:07:00 +00:00
committed by Kwoth
parent fcc49dbbdb
commit 5fa39eaa9f
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -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: