Table of Contents

Interface ICommandAwareChannel

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

Extended channel interface for channels that support native command registration (e.g., Discord slash commands, Slack /commands).

public interface ICommandAwareChannel

Methods

RegisterCommandsAsync(ICommandRegistry, CancellationToken)

Registers commands from the registry as platform-native commands. Called after ConnectAsync when commands are available.

Task RegisterCommandsAsync(ICommandRegistry registry, CancellationToken ct = default)

Parameters

registry ICommandRegistry
ct CancellationToken

Returns

Task