Constructor
new CommandBuilder(name)
The CommandBuilder class: allows you to simply generate a Command.
Example
-
const kimiko = require("kimiko"); let myCommand = new kimiko.CommandBuilder("josh:help") .setUsage("<command> [command]") .setDescription("Prints out all of the help you'd need to use my nice bot!") .setAliases("help", "joshelp") .setExecutor(require("commands/josh/help")) .build();
Methods
-
setAliases(…aliases) → {CommandBuilder}
Sets the aliases for the command
-
setDescription(description) → {CommandBuilder}
Sets the description for the command
-
setExecutor(executor) → {CommandBuilder}
Sets the executor for the command
-
setPermissionRequired(permissionRequired) → {CommandBuilder}
Sets the required permission for the command
-
setTabCompleter(tabCompleter) → {CommandBuilder}
Sets the tab completer for the command
-
setUsage(usage) → {CommandBuilder}
Sets the usage for the command