
com.freya02.botcommands.internal.commands.prefixed.TextCommandInfo.kt Maven / Gradle / Ivy
package com.freya02.botcommands.internal.commands.prefixed
import com.freya02.botcommands.api.commands.prefixed.builder.TextCommandBuilder
import com.freya02.botcommands.internal.commands.AbstractCommandInfo
import com.freya02.botcommands.internal.commands.NSFWStrategy
import com.freya02.botcommands.internal.commands.mixins.INamedCommand
import net.dv8tion.jda.api.EmbedBuilder
import java.util.function.Consumer
abstract class TextCommandInfo(
builder: TextCommandBuilder,
override val parentInstance: INamedCommand?
) : AbstractCommandInfo(builder) {
val subcommands: Map = builder.subcommands.associate { it.name to it.build(this) }
val variations: List = builder.variations.map { it.build(this) }
val aliases: List = builder.aliases
val description: String = builder.description
val nsfwStrategy: NSFWStrategy? = builder.nsfwStrategy
val isOwnerRequired: Boolean = builder.ownerRequired
val hidden: Boolean = builder.hidden
val detailedDescription: Consumer? = builder.detailedDescription
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy