
com.freya02.botcommands.internal.commands.application.slash.SlashSubcommandGroupInfo.kt Maven / Gradle / Ivy
package com.freya02.botcommands.internal.commands.application.slash
import com.freya02.botcommands.api.commands.CommandPath
import com.freya02.botcommands.api.commands.application.slash.builder.SlashSubcommandGroupBuilder
import com.freya02.botcommands.internal.commands.mixins.INamedCommand
import com.freya02.botcommands.internal.commands.mixins.INamedCommand.Companion.computePath
class SlashSubcommandGroupInfo(topLevelInstance: TopLevelSlashCommandInfo, builder: SlashSubcommandGroupBuilder) : INamedCommand {
override val parentInstance = topLevelInstance
override val name = builder.name
override val path: CommandPath by lazy { computePath() }
val description = builder.description
val subcommands: Map = builder.subcommands.map.mapValues { it.value.build(topLevelInstance, this) }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy