Classes
Yor.ts | classes/YorSlashCommand
yor.ts / Exports / YorSlashCommand
Class: YorSlashCommand
Implements
Table of contents
Constructors
Properties
Constructors
constructor
• new YorSlashCommand(): YorSlashCommand
Returns
Properties
autocomplete
• autocomplete: (context
: AutocompleteCommandContext
) => void
| Promise
<void
>
Type declaration
▸ (context
): void
| Promise
<void
>
Parameters
Name | Type |
---|---|
context | AutocompleteCommandContext |
Returns
void
| Promise
<void
>
Implementation of
Defined in
src/structures/YorSlashCommand.ts:17
builder
• builder: SlashCommandBuilder
| SlashCommandSubcommandsOnlyBuilder
| Omit
<SlashCommandBuilder
, "addSubcommand"
| "addSubcommandGroup"
>
Implementation of
Defined in
src/structures/YorSlashCommand.ts:12
execute
• execute: (context
: CommandContext
) => void
| Promise
<void
>
Type declaration
▸ (context
): void
| Promise
<void
>
Parameters
Name | Type |
---|---|
context | CommandContext |
Returns
void
| Promise
<void
>
Implementation of
Defined in
Was this page helpful?