about summary refs log tree commit diff
path: root/Utilities/LibMatrix.Utilities.Bot/Interfaces
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-03-20 12:00:54 +0100
committerRory& <root@rory.gay>2024-03-20 12:00:54 +0100
commitb992d20da79b9de020d629bf9574abefff9c4b12 (patch)
treea5205343b6edbc8f627215efdd147d86a4a737c7 /Utilities/LibMatrix.Utilities.Bot/Interfaces
parentBot related fixes, image size (diff)
downloadLibMatrix-b992d20da79b9de020d629bf9574abefff9c4b12.tar.xz
New messagebuilder stuff, table-based help command
Diffstat (limited to '')
-rw-r--r--Utilities/LibMatrix.Utilities.Bot/Interfaces/ICommand.cs8
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