The aliases of the command.
The arguments of the command. You can put your own custom arguments but you must add the type to the argument types.
The category of the command.
The channels where the command should only be executed if used (if using the default message event).
The client permissions needed to run the command (if using the default message event).
The cooldown of the command in seconds.
The description of the command.
The name of the command.
The SubCommands of this command.
The tags of the command.
The usage of the command.
The user permissions needed to run the command (if using the default message event).
The emoji for waiting.
Deletes a message if deletable.
The options, see DeleteMessageOptions.
Execute the run method, but perform validations before, prefer using this method in your custom Message Event.
The CContext.
Get the actual cooldown of the user for this command plus when command has been executed and how many seconds to wait.
Where to get the cooldown from, can be a user/guild/message, see types.
Returns the invalid permissions (not presents in Permissions.FLAGS).
Returns the missing permissions from the client & user for a context.
The context to validate permissions for.
Gives the tags of this command which are not validated by the context.
i.e. If a command is executed on a guild and the command has the dmOnly
Tag, it will be returned.
The context to test tags from.
Returns true if the user is in a cooldown for this command.
From where to test if user/guild/message is in a cooldown, see types.
Returns false if channels are defined for this command but the message doesn't come from one of it.
The context to test where it comes from.
Override this method to register your subCommands.
The function to run when executing the command.
The command context.
Put all the required properties in CommandHandler.cooldowns plus the setTimeout
to remove the user from the cooldowns.
What to use to select the user to set the cooldown from, can be a guild/message/member.
Get the signature of this command.
The options for the signature, show the type of the arguments or the default values.
Returns the signature of the command plus the signature of the subCommands of this command.
The options for the signature, show the type of the arguments or the default values.
Reacts with the waitEmoji.
The context to react to.
Remove the reaction waitEmoji of the bot.
The context to remove the reaction to.
Validate a command, returning an error if any of the validation methods are not valid.
The CommandContext.
Returns the names and aliases of this command in an array.
Returns the names and aliases of the subCommands of this command in an array flatted.
Generated using TypeDoc
https://ayfri.gitbook.io/advanced-command-handler/concepts/commands/templates