CommandInterface

CommandInterface<T = unknown> -> Interface

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

Last updated

Was this helpful?