mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-13 02:38:27 -04:00
Added SmartText and inheritors SmartPlainText and SmartEmbedText which will replace CREmbed in the future
This commit is contained in:
23
src/NadekoBot/Common/SmartText/SmartPlainText.cs
Normal file
23
src/NadekoBot/Common/SmartText/SmartPlainText.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user