registerCommands

fun JDA.registerCommands(): JDA(source)

Registers slash commands for the JDA instance. It scans for classes annotated with SlashCommand in the specified package and registers the commands with their localized names and descriptions.

Return

The updated JDA instance after registering the commands.