Table of Contents

Class SlashCommandDefinition

Namespace
JD.AI.Commands
Assembly
JD.AI.dll
public sealed class SlashCommandDefinition
Inheritance
SlashCommandDefinition
Inherited Members

Constructors

SlashCommandDefinition(SlashCommandId, string, string, string, string?, bool, IReadOnlyList<string>?, IReadOnlyList<SlashCommandDescriptor>?)

public SlashCommandDefinition(SlashCommandId Id, string Command, string HelpSignature, string HelpDescription, string? CompletionDescription = null, bool IncludeInCompletion = true, IReadOnlyList<string>? Aliases = null, IReadOnlyList<SlashCommandDescriptor>? AdditionalCompletions = null)

Parameters

Id SlashCommandId
Command string
HelpSignature string
HelpDescription string
CompletionDescription string
IncludeInCompletion bool
Aliases IReadOnlyList<string>
AdditionalCompletions IReadOnlyList<SlashCommandDescriptor>

Properties

AdditionalCompletions

public IReadOnlyList<SlashCommandDescriptor> AdditionalCompletions { get; }

Property Value

IReadOnlyList<SlashCommandDescriptor>

Aliases

public IReadOnlyList<string> Aliases { get; }

Property Value

IReadOnlyList<string>

Command

public string Command { get; }

Property Value

string

CompletionDescription

public string CompletionDescription { get; }

Property Value

string

HelpDescription

public string HelpDescription { get; }

Property Value

string

HelpSignature

public string HelpSignature { get; }

Property Value

string

Id

public SlashCommandId Id { get; }

Property Value

SlashCommandId

IncludeInCompletion

public bool IncludeInCompletion { get; }

Property Value

bool