You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
686 B
30 lines
686 B
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}";
|
|
}
|
|
} |