From e764b56456bca4bd5efa74b804036fcdad4b87b1 Mon Sep 17 00:00:00 2001 From: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com> Date: Mon, 27 May 2024 02:32:27 +0300 Subject: [PATCH] w --- src/Discord.Net.Core/Entities/Emotes/Emote.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.Core/Entities/Emotes/Emote.cs b/src/Discord.Net.Core/Entities/Emotes/Emote.cs index 71529732a7..b55535bad5 100644 --- a/src/Discord.Net.Core/Entities/Emotes/Emote.cs +++ b/src/Discord.Net.Core/Entities/Emotes/Emote.cs @@ -31,8 +31,13 @@ public class Emote : IEmote, ISnowflakeEntity /// public string Url => CDN.GetEmojiUrl(Id, Animated); - internal Emote(ulong id, string name, bool animated) + /// + /// Creates a new instance of . + /// + public Emote(ulong id, string name, bool animated = false) { + if (string.IsNullOrWhiteSpace(name)) + throw new ArgumentException("A custom emote must have a name", nameof(name)); Id = id; Name = name; Animated = animated;