(Re-)add confirmation when changing avatar by URL

This commit is contained in:
Ske 2020-07-07 14:47:34 +02:00
parent 59bbbab621
commit b1ede87df2

View File

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