📕
AFKHandler
  • Introduction
  • FAQ
  • Changelog
  • Classes
    • AFKHandler
    • Command
    • SlashCommand
    • Event
    • Feature
  • Methods
    • Commands
    • SlashCommands
    • deleteSlash
    • Events
    • Features
    • load
    • setCooldown
    • time
    • convert
    • convertLong
  • Types
  • AFKHandlerInteraface
  • AFKHandlerOptions
  • CommandInterface
  • SlashCommandInterface
  • EventInterface
  • FeatureInterface
  • CommandHelp
  • (Callbacks)
  • (Utils)
Powered by GitBook
On this page

Was this helpful?

SlashCommandInterface

PreviousCommandInterfaceNextEventInterface

Last updated 3 years ago

Was this helpful?

SlashCommandInterface<T = unknown> -> Interface

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

CommandHelp
ApplicationCommandType
ApplicationCommandOptionData
Awaited
SlashCallback
SlashCallback
SlashCallback
SlashCallback
SlashCallback