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

Method createSlashCommand

components/runtime/src/ts/script.ts:60–65  ·  view source on GitHub ↗
(name: string, description: string)

Source from the content-addressed store, hash-verified

58 }
59
60 createSlashCommand(name: string, description: string): Commands.SlashCommandBuilder<{}> {
61 const builder = Commands.slashCommand(name, description)
62 builder.onBuilt = (cmd) => this.createCommand(cmd)
63
64 return builder
65 }
66
67 createUserCommand(name: string): Commands.UserCommandBuilder {
68 const builder = Commands.userCommand(name)

Callers

nothing calls this directly

Calls 1

createCommandMethod · 0.95

Tested by

no test coverage detected