fix(bot): check own system before confirming clear in a few commands

This commit is contained in:
alyssa 2024-11-10 11:03:18 +09:00
parent 614131265b
commit 620364bf61
2 changed files with 6 additions and 3 deletions

View file

@ -123,9 +123,10 @@ public class MemberAvatar
MemberGuildSettings? guildData)
{
// First, see if we need to *clear*
if (ctx.MatchClear() && await ctx.ConfirmClear("this member's " + location.Name()))
if (ctx.MatchClear())
{
ctx.CheckSystem().CheckOwnMember(target);
await ctx.ConfirmClear("this member's " + location.Name());
await AvatarClear(location, ctx, target, guildData);
return;
}