MCPcopy Index your code
hub / github.com/Botloader/botloader / createCommand

Method createCommand

components/runtime/src/ts/script.ts:55–58  ·  view source on GitHub ↗

* Creates or updates a command * * See Commands.slashCommand, Commands.messageCommand and Commands.userCommand * for more info on defining the commands themselves

(command: Commands.Command)

Source from the content-addressed store, hash-verified

53 * for more info on defining the commands themselves
54 */
55 createCommand(command: Commands.Command) {
56 this.commands.push(command);
57 EventSystem.commandSystem.addCommand(command);
58 }
59
60 createSlashCommand(name: string, description: string): Commands.SlashCommandBuilder<{}> {
61 const builder = Commands.slashCommand(name, description)

Callers 15

createSlashCommandMethod · 0.95
createUserCommandMethod · 0.95
createMessageCommandMethod · 0.95
commands.tsFile · 0.80
tags.tsFile · 0.80
welcome.tsFile · 0.80
polls.tsFile · 0.80
leveling.tsFile · 0.80
moderation.tsFile · 0.80
ping.tsFile · 0.80
giveaways.tsFile · 0.80
reaction_roles.tsFile · 0.80

Calls 1

addCommandMethod · 0.80

Tested by

no test coverage detected