mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
19 lines
430 B
C#
19 lines
430 B
C#
#nullable disable
|
|
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(input);
|
|
|
|
public static implicit operator string(SmartPlainText input)
|
|
=> input.Text;
|
|
|
|
public override string ToString()
|
|
=> Text;
|
|
} |