mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-12 12:49:04 +00:00
30 lines
686 B
C#
30 lines
686 B
C#
using Tyrrrz.Extensions;
|
|
|
|
namespace DiscordChatExporter.Core.Markdown
|
|
{
|
|
public class EmojiNode : Node
|
|
{
|
|
public string Id { get; }
|
|
|
|
public string Name { get; }
|
|
|
|
public bool IsAnimated { get; }
|
|
|
|
public bool IsCustomEmoji => Id.IsNotBlank();
|
|
|
|
public EmojiNode(string lexeme, string id, string name, bool isAnimated)
|
|
: base(lexeme)
|
|
{
|
|
Id = id;
|
|
Name = name;
|
|
IsAnimated = isAnimated;
|
|
}
|
|
|
|
public EmojiNode(string lexeme, string name)
|
|
: this(lexeme, null, name, false)
|
|
{
|
|
}
|
|
|
|
public override string ToString() => $"<Emoji> {Name}";
|
|
}
|
|
} |