SlashCommandInterface

SlashCommandInterface<T = unknown> -> Interface

  • 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);

Last updated

Was this helpful?