mcdiscordbot/MinecraftDiscordBot/ICommandHandler.cs

11 lines
329 B
C#
Raw Normal View History

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);
}