yor.ts / Exports / YorSlashCommand

Class: YorSlashCommand

Implements

Table of contents

Constructors

Properties

Constructors

constructor

new YorSlashCommand(): YorSlashCommand

Returns

YorSlashCommand

Properties

autocomplete

autocomplete: (context: AutocompleteCommandContext) => void | Promise<void>

Type declaration

▸ (context): void | Promise<void>

Parameters
NameType
contextAutocompleteCommandContext
Returns

void | Promise<void>

Implementation of

Command.autocomplete

Defined in

src/structures/YorSlashCommand.ts:17


builder

builder: SlashCommandBuilder | SlashCommandSubcommandsOnlyBuilder | Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">

Implementation of

Command.builder

Defined in

src/structures/YorSlashCommand.ts:12


execute

execute: (context: CommandContext) => void | Promise<void>

Type declaration

▸ (context): void | Promise<void>

Parameters
NameType
contextCommandContext
Returns

void | Promise<void>

Implementation of

Command.execute

Defined in

src/structures/YorSlashCommand.ts:16