SlashCommand
class
SlashCommand
sourceexport class SlashCommand extends BaseCommand export class SlashCommand extends BaseCommandconstructor(data?: Partial<SlashCommand.Data>) constructor(data?: Partial<SlashCommand.Data>)| Param | Type | Required |
|---|---|---|
| | No |
execute(data: SlashCommand.ExecuteData): Promise<void> execute(data: SlashCommand.ExecuteData): Promise<void>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<void> Promise<void>.setCommand(...)
setCommand(data: SlashCommandBuilder.Data|JSONEncodable<SlashCommandBuilder.Data>|(((builder: SlashCommandBuilder)) => SlashCommandBuilder.Data|JSONEncodable<SlashCommandBuilder.Data>)): this setCommand(data: SlashCommandBuilder.Data|JSONEncodable<SlashCommandBuilder.Data>|(((builder: SlashCommandBuilder)) => SlashCommandBuilder.Data|JSONEncodable<SlashCommandBuilder.Data>)): this| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
this thistoJSON(): SlashCommand.Data toJSON(): SlashCommand.DataReturns:
SlashCommand.Data SlashCommand.DataCommandType.Slash CommandType.Slash