ede4efa4e3
Added router class using attributes Added success parameter to mc computer response Added generic answer type class (for future choice results) Changelog: added
11 lines
329 B
C#
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);
|
|
} |