SlashCommand
namespace
SlashCommand
sourceexport namespace SlashCommand export namespace SlashCommandtypeAlias
Resolvable
sourceexport type Resolvable = SlashCommand|SlashCommand.Data export type Resolvable = SlashCommand|SlashCommand.Datainterface
Data
sourceexport interface Data extends BaseCommand.Data<CommandType.Slash> export interface Data extends BaseCommand.Data<CommandType.Slash>interface
ExecuteData
sourceexport interface ExecuteData extends BaseCommand.ExecuteData<CommandType.Slash> export interface ExecuteData extends BaseCommand.ExecuteData<CommandType.Slash>CommandType.Slash CommandType.SlashSlashCommand SlashCommandChatInputCommandInteraction ChatInputCommandInteractioninterface
ExecuteOptions
sourceexport interface ExecuteOptions extends BaseCommand.ExecuteOptions export interface ExecuteOptions extends BaseCommand.ExecuteOptionsfunction
execute
sourceexport function execute({ interaction, client, command, acceptRepliedInteraction, throwOnExecuteError }: ExecuteOptions): Promise<ExecuteData|null> export function execute({ interaction, client, command, acceptRepliedInteraction, throwOnExecuteError }: ExecuteOptions): Promise<ExecuteData|null>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<ExecuteData|null> Promise<ExecuteData|null>