Interface IChannelCommand
Defines a single command that can be invoked from any channel.
public interface IChannelCommand
Properties
Description
Short description shown in help text and slash command metadata.
string Description { get; }
Property Value
Name
Command name without prefix (e.g., "help", "usage").
string Name { get; }
Property Value
Parameters
Optional parameters this command accepts.
IReadOnlyList<CommandParameter> Parameters { get; }
Property Value
Methods
ExecuteAsync(CommandContext, CancellationToken)
Execute the command and return a result.
Task<CommandResult> ExecuteAsync(CommandContext context, CancellationToken ct = default)
Parameters
contextCommandContextctCancellationToken