From b992d20da79b9de020d629bf9574abefff9c4b12 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 20 Mar 2024 12:00:54 +0100 Subject: New messagebuilder stuff, table-based help command --- Utilities/LibMatrix.Utilities.Bot/Interfaces/ICommand.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Utilities/LibMatrix.Utilities.Bot/Interfaces/ICommand.cs') 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 : ICommand where T : ICommandGroup { } -public interface ICommandGroup : ICommand { - public IImmutableList SubCommands { get; } -} \ No newline at end of file +public interface ICommandGroup : ICommand { } + +public interface ICommandGroup : ICommandGroup where T : ICommandGroup { } \ No newline at end of file -- cgit 1.4.1