mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 10:18:27 -04:00
- .send and .qid now use smarttext instead of crembed - added + operator for adding string to smarttext
23 lines
518 B
C#
23 lines
518 B
C#
namespace NadekoBot
|
|
{
|
|
public sealed record SmartPlainText : SmartText
|
|
{
|
|
public string Text { get; init; }
|
|
|
|
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;
|
|
}
|
|
}
|
|
} |