Added SmartText and inheritors SmartPlainText and SmartEmbedText which will replace CREmbed in the future

This commit is contained in:
Kwoth
2021-07-10 23:31:12 +02:00
parent 5e4754fa40
commit 236c286278
7 changed files with 224 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
namespace NadekoBot
{
public sealed class SmartPlainText : SmartText
{
public string Text { get; set; }
public SmartPlainText(string text)
{
Text = text;
}
public static implicit operator SmartPlainText(string input)
=> new SmartPlainText(input);
public static implicit operator string(SmartPlainText input)
=> input.Text;
public override string ToString()
{
return Text;
}
}
}