Add Extension Methods

This commit is contained in:
Fennel
2020-04-24 17:20:34 -04:00
committed by Astrid
parent c99784b9dc
commit 949dae6561
4 changed files with 10 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
using DSharpPlus;
using DSharpPlus.Entities;
using System.Net.WebSockets;
@@ -19,5 +20,10 @@ namespace PluralKit.Bot
}
return true;
}
public static bool HasAvatar(this DiscordUser user)
{
return user.AvatarUrl != user.DefaultAvatarUrl;
}
}
}