mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
nadekobot almost builds
This commit is contained in:
23
src/Nadeko.Bot.Common/TypeReaders/CommandOrExprInfo.cs
Normal file
23
src/Nadeko.Bot.Common/TypeReaders/CommandOrExprInfo.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
#nullable disable
|
||||
namespace NadekoBot.Common.TypeReaders;
|
||||
|
||||
public class CommandOrExprInfo
|
||||
{
|
||||
public enum Type
|
||||
{
|
||||
Normal,
|
||||
Custom
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
public Type CmdType { get; set; }
|
||||
|
||||
public bool IsCustom
|
||||
=> CmdType == Type.Custom;
|
||||
|
||||
public CommandOrExprInfo(string input, Type type)
|
||||
{
|
||||
Name = input;
|
||||
CmdType = type;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user