Class CommandContext
Context provided when a command is invoked.
public record CommandContext : IEquatable<CommandContext>
- Inheritance
-
CommandContext
- Implements
- Inherited Members
Properties
Arguments
Parsed arguments keyed by parameter name.
public IReadOnlyDictionary<string, string> Arguments { get; init; }
Property Value
ChannelId
Channel/conversation ID where the command was invoked.
public required string ChannelId { get; init; }
Property Value
ChannelType
The channel type (e.g., "discord", "signal", "slack").
public required string ChannelType { get; init; }
Property Value
CommandName
The command name that was invoked.
public required string CommandName { get; init; }
Property Value
InvokerDisplayName
Display name of the invoker (if available).
public string? InvokerDisplayName { get; init; }
Property Value
InvokerId
ID of the user who invoked the command.
public required string InvokerId { get; init; }