if (interaction.command.rootName == "configure") configureInteraction(interaction)
you can also check if the command is a subcommand or group command by checking types
val command = interaction.command
if(command is RootCommand)
// OR for subcommand
if(command is SubCommand)
// OR for group subcommand
if(command is GroupSubCommand)
each of these types provide more context based on type.
https://github.com/BanDev/Notify/blob/8c4b194f142dba4c546882e500938a4b37f4f237/src/main/kotlin/Main.kt#L31
you can also check if the command is a subcommand or group command by checking types
each of these types provide more context based on type.