Remove a few unnecessary extensions

This commit is contained in:
Ske
2020-05-01 17:38:16 +02:00
parent 48833639e2
commit b927d0c2b7
3 changed files with 3 additions and 32 deletions

View File

@@ -144,7 +144,7 @@ namespace PluralKit.Bot
var member = await ctx.MatchUser();
if (member != null)
{
if (!member.HasAvatar()) throw Errors.UserHasNoAvatar;
if (member.AvatarHash == null) throw Errors.UserHasNoAvatar;
ctx.System.AvatarUrl = member.GetAvatarUrl(ImageFormat.Png, size: 256);
await _data.SaveSystem(ctx.System);