about summary refs log tree commit diff
path: root/Utilities/LibMatrix.Utilities.Bot/Interfaces/ICommand.cs
blob: 453a8feaf3be5a8380d8ed4cbb6f0c049783db13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
namespace LibMatrix.Utilities.Bot.Interfaces;

public interface ICommand {
    public string Name { get; }
    public string Description { get; }

    public Task<bool> CanInvoke(CommandContext ctx) => Task.FromResult(true);

    public Task Invoke(CommandContext ctx);
}