mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 05:47:53 +00:00
Add Extension Methods
This commit is contained in:
parent
c99784b9dc
commit
949dae6561
4 changed files with 10 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue