yor.ts / Exports / Command

Interface: Command

Implemented by

Table of contents

Properties

Properties

autocomplete

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

Type declaration

▸ (context): void | Promise<void>
Parameters
NameType
contextAutocompleteCommandContext
Returns
void | Promise<void>

Defined in

src/interfaces/Command.ts:18

builder

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

Defined in

src/interfaces/Command.ts:13

execute

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

Type declaration

▸ (context): void | Promise<void>
Parameters
NameType
contextCommandContext
Returns
void | Promise<void>

Defined in

src/interfaces/Command.ts:17