mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 02:08:27 -04:00
Restructured the project structure back to the way it was, there's no reasonable way to split the modules
This commit is contained in:
19
src/NadekoBot/_common/SmartText/SmartPlainText.cs
Normal file
19
src/NadekoBot/_common/SmartText/SmartPlainText.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user