Fix "clear server avatar" confirmation message

This commit is contained in:
spiral 2020-11-08 14:37:38 -05:00
parent 537783dd96
commit 8956777c9a
No known key found for this signature in database
GPG Key ID: 00C26F208D3FCCAB

View File

@ -85,7 +85,7 @@ namespace PluralKit.Bot
private async Task AvatarCommandTree(AvatarLocation location, Context ctx, PKMember target, MemberGuildSettings? guildData) private async Task AvatarCommandTree(AvatarLocation location, Context ctx, PKMember target, MemberGuildSettings? guildData)
{ {
// First, see if we need to *clear* // First, see if we need to *clear*
if (await ctx.MatchClear("this member's avatar")) if (await ctx.MatchClear(location == AvatarLocation.Server ? "this member's server avatar" : "this member's avatar"))
{ {
ctx.CheckSystem().CheckOwnMember(target); ctx.CheckSystem().CheckOwnMember(target);
await AvatarClear(location, ctx, target, guildData); await AvatarClear(location, ctx, target, guildData);