mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Read about the medusa system [here](https://nadekobot.readthedocs.io/en/latest/medusa/creating-a-medusa/)
24 lines
482 B
C#
24 lines
482 B
C#
using YamlDotNet.Serialization;
|
|
|
|
namespace Nadeko.Snake;
|
|
|
|
public readonly struct CommandStrings
|
|
{
|
|
public CommandStrings(string? desc, string[]? args)
|
|
{
|
|
Desc = desc;
|
|
Args = args;
|
|
}
|
|
|
|
[YamlMember(Alias = "desc")]
|
|
public string? Desc { get; init; }
|
|
|
|
[YamlMember(Alias = "args")]
|
|
public string[]? Args { get; init; }
|
|
|
|
public void Deconstruct(out string? desc, out string[]? args)
|
|
{
|
|
desc = Desc;
|
|
args = Args;
|
|
}
|
|
} |