mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +00:00
fix(bot): check own system before confirming clear in a few commands
This commit is contained in:
parent
614131265b
commit
620364bf61
2 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue