Table of Contents

Class SlashCommandCatalog

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

Single source of truth for slash-command routing/help/completion metadata.

public static class SlashCommandCatalog
Inheritance
SlashCommandCatalog
Inherited Members

Properties

CompletionEntries

public static IReadOnlyList<SlashCommandDescriptor> CompletionEntries { get; }

Property Value

IReadOnlyList<SlashCommandDescriptor>

Definitions

public static IReadOnlyList<SlashCommandDefinition> Definitions { get; }

Property Value

IReadOnlyList<SlashCommandDefinition>

HelpEntries

public static IReadOnlyList<SlashCommandHelpEntry> HelpEntries { get; }

Property Value

IReadOnlyList<SlashCommandHelpEntry>

Methods

BuildHelpText()

public static string BuildHelpText()

Returns

string

RegisterCompletions(CompletionProvider)

public static void RegisterCompletions(CompletionProvider completionProvider)

Parameters

completionProvider CompletionProvider

TryResolveDispatch(string, out SlashCommandId)

public static bool TryResolveDispatch(string commandToken, out SlashCommandId id)

Parameters

commandToken string
id SlashCommandId

Returns

bool