Skip to content

Commit

Permalink
Removes validation for public ctor of Emote
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan committed Jun 20, 2024
1 parent 2f56635 commit 845c27f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Kook.Net.Core/Entities/Emotes/Emote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public class Emote : IEmote
/// </summary>
public Emote(string id, string name, bool? animated = null)
{
if (string.IsNullOrWhiteSpace(name))
throw new ArgumentException("A custom emote must have a name", nameof(name));
Id = id;
Name = name;
Animated = animated;
Expand Down

0 comments on commit 845c27f

Please sign in to comment.