diff options
author | Rory& <root@rory.gay> | 2024-03-20 12:00:54 +0100 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-03-20 12:00:54 +0100 |
commit | b992d20da79b9de020d629bf9574abefff9c4b12 (patch) | |
tree | a5205343b6edbc8f627215efdd147d86a4a737c7 /Utilities/LibMatrix.Utilities.Bot/Interfaces/ICommand.cs | |
parent | Bot related fixes, image size (diff) | |
download | LibMatrix-b992d20da79b9de020d629bf9574abefff9c4b12.tar.xz |
New messagebuilder stuff, table-based help command
Diffstat (limited to 'Utilities/LibMatrix.Utilities.Bot/Interfaces/ICommand.cs')
-rw-r--r-- | Utilities/LibMatrix.Utilities.Bot/Interfaces/ICommand.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Utilities/LibMatrix.Utilities.Bot/Interfaces/ICommand.cs b/Utilities/LibMatrix.Utilities.Bot/Interfaces/ICommand.cs index 4626a23..941d69e 100644 --- a/Utilities/LibMatrix.Utilities.Bot/Interfaces/ICommand.cs +++ b/Utilities/LibMatrix.Utilities.Bot/Interfaces/ICommand.cs @@ -1,5 +1,6 @@ using System.Collections.Frozen; using System.Collections.Immutable; +using Microsoft.Extensions.DependencyInjection; namespace LibMatrix.Utilities.Bot.Interfaces; @@ -14,7 +15,8 @@ public interface ICommand { public Task Invoke(CommandContext ctx); } +public interface ICommand<T> : ICommand where T : ICommandGroup { } -public interface ICommandGroup : ICommand { - public IImmutableList<ICommand> SubCommands { get; } -} \ No newline at end of file +public interface ICommandGroup : ICommand { } + +public interface ICommandGroup<T> : ICommandGroup where T : ICommandGroup { } \ No newline at end of file |