Merge pull request #245 from dev-kittens/fix/clear-serveravatar
Fix "clear server avatar" confirmation message
This commit is contained in:
commit
1147603520
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user