Fix avatar setting by mention

This commit is contained in:
Ske
2019-07-19 14:21:16 +02:00
parent b85c79c57b
commit 3d073df359
2 changed files with 16 additions and 0 deletions

View File

@@ -191,6 +191,7 @@ namespace PluralKit.Bot.Commands
{
if (member.AvatarId == null) throw Errors.UserHasNoAvatar;
ContextEntity.AvatarUrl = member.GetAvatarUrl(ImageFormat.Png, size: 256);
await Members.Save(ContextEntity);
var embed = new EmbedBuilder().WithImageUrl(ContextEntity.AvatarUrl).Build();
await Context.Channel.SendMessageAsync(