Skip to content

Registration

Commands

DaisyCore registers commands by discovering providers at startup instead of making you wire the tree manually.

@DaisyCommandSet
object ProfileCommands : DaisyCommandGroup({
command("profile") {
player {
reply("Hello from DaisyCore.")
}
}
})
  • mark providers with @DaisyCommandSet
  • keep the command tree inside DaisyCommandGroup
  • let DaisyCore discover and register the active command set during startup

Read next: