mcdiscordbot/MinecraftDiscordBot/ICommandHandler.cs
Michael Chen ede4efa4e3
Added command routing
Added router class using attributes
Added success parameter to mc computer response
Added generic answer type class (for future choice results)

Changelog: added
2022-01-15 21:26:32 +01:00

11 lines
329 B
C#

using Discord.WebSocket;
namespace MinecraftDiscordBot;
public interface ICommandHandler {
Task HandleCommand(SocketUserMessage message, string[] parameters, CancellationToken ct);
}
public interface ICommandHandler<T> {
Task<T> HandleCommand(SocketUserMessage message, string[] parameters, CancellationToken ct);
}