Table of Contents

Class CommandContext

Namespace
JD.AI.Core.Commands
Assembly
JD.AI.Core.dll

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

IReadOnlyDictionary<string, string>

ChannelId

Channel/conversation ID where the command was invoked.

public required string ChannelId { get; init; }

Property Value

string

ChannelType

The channel type (e.g., "discord", "signal", "slack").

public required string ChannelType { get; init; }

Property Value

string

CommandName

The command name that was invoked.

public required string CommandName { get; init; }

Property Value

string

InvokerDisplayName

Display name of the invoker (if available).

public string? InvokerDisplayName { get; init; }

Property Value

string

InvokerId

ID of the user who invoked the command.

public required string InvokerId { get; init; }

Property Value

string