SlashCommandInterface
Last updated
Was this helpful?
Last updated
Was this helpful?
name: string;
description: string;
help?: ;
default?: boolean;
type?: ;
stop?: boolean;
options?: Array<>;
cooldown?: string | number;
cooldownMsg?: (remaining: string) => <unknown>;
callback?: <T>;
run?: <T>;
execute?: <T>;
fire?: <T>;
emit?: <T>;
name: command name;
description: Command description for slash command;
help: helping information;
callback: function fired when a command is executed;
run: function fired when a command is executed;
execute: function fired when a command is executed;
fire: function fired when a command is executed;
emit: function fired when a command is executed;
default: whether the command is enabled by default when the app is added to a guild;
type: command type;
stop: whether the handler will make a request to publish this command again;
options: slash command options;
cooldown: cooldown;
cooldownMsg: message sent when a user is on cooldown (function where the 1st parameter is the remaining time, returned value is what will be sent);