Fixed a bug for .quotedeleteauthor causing the executing user to delete own messages

This commit is contained in:
Kwoth
2022-12-22 21:09:00 +01:00
parent d5c70def93
commit ffcbfe6467

View File

@@ -270,7 +270,7 @@ public partial class Utility
if (userId == ctx.User.Id || hasManageMessages)
{
var deleted = await _qs.DeleteAllAuthorQuotesAsync(ctx.Guild.Id, ctx.User.Id);
var deleted = await _qs.DeleteAllAuthorQuotesAsync(ctx.Guild.Id, userId);
await ReplyConfirmLocalizedAsync(strs.quotes_deleted_count(deleted));
}
else