(Re-)add confirmation when changing avatar by URL
This commit is contained in:
parent
59bbbab621
commit
b1ede87df2
@ -95,6 +95,8 @@ namespace PluralKit.Bot
|
|||||||
var embed = new DiscordEmbedBuilder().WithImageUrl(url).Build();
|
var embed = new DiscordEmbedBuilder().WithImageUrl(url).Build();
|
||||||
if (location == AvatarLocation.Server)
|
if (location == AvatarLocation.Server)
|
||||||
await ctx.Reply($"{Emojis.Success} Member server avatar changed. This avatar will now be used when proxying in this server (**{ctx.Guild.Name}**).", embed: embed);
|
await ctx.Reply($"{Emojis.Success} Member server avatar changed. This avatar will now be used when proxying in this server (**{ctx.Guild.Name}**).", embed: embed);
|
||||||
|
else
|
||||||
|
await ctx.Reply($"{Emojis.Success} Member server avatar changed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task AvatarFromAttachment(AvatarLocation location, Context ctx, PKMember target, DiscordAttachment attachment)
|
private async Task AvatarFromAttachment(AvatarLocation location, Context ctx, PKMember target, DiscordAttachment attachment)
|
||||||
|
Loading…
Reference in New Issue
Block a user