📕
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?

CommandInterface

PreviousAFKHandlerOptionsNextSlashCommandInterface

Last updated 3 years ago

Was this helpful?

CommandInterface<T = unknown> -> Interface

  • name: string;

  • aliases?: string[];

  • help?: ;

  • hidden?: boolean | null;

  • guilds?: <>;

  • guildsMsg?: ;

  • nsfw?: boolean;

  • nsfwMsg?: ;

  • dev?: boolean;

  • devMsg?: ;

  • permissions?: <>;

  • permissionsMsg?: ;

  • locked?: boolean;

  • lockedMsg?: ;

  • cooldown?: string | number;

  • cooldownMsg?: (remaining?: string) => <>;

  • args?: { max?: number; min?: number; };

  • argsMsg?: ;

  • botPermissions: <>;

  • botPermissionsMsg: ;

  • callback?: Callback<T>;

  • run?: Callback<T>;

  • execute?: Callback<T>;

  • fire?: Callback<T>;

  • emit?: Callback<T>;

  • name: command name;

  • aliases: command aliases;

  • help: helping information;

  • hidden: when true it makes the command completely invisible, when null it makes the command partially invisible;

  • guilds: guilds where the command can be executed;

  • guildsMsg: message sent when a command isn't executed in the correct guild;

  • nsfw: nsfw command;

  • nsfwMsg: message that appears when a command is nsfw and is executed in q non nsfw channel;

  • dev: developer command;

  • devMsg: message sent when a developer command isn't used by a developer;

  • permissions: permissions that a GuildMember requires to execute the command;

  • permissionsMsg: message sent when a member without any permission setted on permissions property;

  • locked: if the command is currently locked;

  • lockedMsg: message sent when a locked command is executed;

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

  • args.min: minimum arguments

  • args.max: maximum arguments

  • argsMsg: message sent when the user message doesn't satisfy the given arguments;

  • botPermissions: permissions that the bot requires to execute a command;

  • botPermissionsMsg: message sent when the bot doesn't have every permission specified in botPermissions property;

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

CommandHelp
Arrayed
Snowflake
DJSSend
DJSSend
DJSSend
Arrayed
Snowflake
DJSSend
DJSSend
Awaited
DJSSend
DJSSend
Arrayed
Snowflake
DJSSend