Merge pull request #245 from dev-kittens/fix/clear-serveravatar

Fix "clear server avatar" confirmation message
This commit is contained in:
Astrid 2020-11-15 13:13:33 +01:00 committed by GitHub
commit 1147603520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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