We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 531b5eb commit 3be72a8Copy full SHA for 3be72a8
src/Discord.Net.Core/Entities/Emotes/Emote.cs
@@ -31,8 +31,13 @@ public class Emote : IEmote, ISnowflakeEntity
31
/// </returns>
32
public string Url => CDN.GetEmojiUrl(Id, Animated);
33
34
- internal Emote(ulong id, string name, bool animated)
+ /// <summary>
35
+ /// Creates a new instance of <see cref="Emote" />.
36
+ /// </summary>
37
+ public Emote(ulong id, string name, bool animated = false)
38
{
39
+ if (string.IsNullOrWhiteSpace(name))
40
+ throw new ArgumentException("A custom emote must have a name", nameof(name));
41
Id = id;
42
Name = name;
43
Animated = animated;
0 commit comments