mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
Refactor command system
This commit is contained in:
parent
0ec522ca0a
commit
1988b29fbc
21 changed files with 1353 additions and 882 deletions
19
PluralKit.Bot/CommandSystem/CommandGroup.cs
Normal file
19
PluralKit.Bot/CommandSystem/CommandGroup.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace PluralKit.Bot.CommandSystem
|
||||
{
|
||||
public class CommandGroup
|
||||
{
|
||||
public string Key { get; }
|
||||
public string Description { get; }
|
||||
|
||||
public ICollection<Command> Children { get; }
|
||||
|
||||
public CommandGroup(string key, string description, ICollection<Command> children)
|
||||
{
|
||||
Key = key;
|
||||
Description = description;
|
||||
Children = children;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue