Table of Contents

Interface ISlashCommandRouter

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

Handles slash command routing.

public interface ISlashCommandRouter

Methods

ExecuteAsync(string, CancellationToken)

Execute a slash command and return the output text.

Task<string?> ExecuteAsync(string input, CancellationToken ct = default)

Parameters

input string
ct CancellationToken

Returns

Task<string>

IsSlashCommand(string)

Returns true if the input starts with /.

bool IsSlashCommand(string input)

Parameters

input string

Returns

bool