BotCommands
3.0.0-beta.7
      Target filter
Search in API
Skip to content
    BotCommands
BotCommands-core/io.github.freya022.botcommands.api.commands.application.slash.options.builder/SlashCommandOptionBuilder/usePredefinedChoices

usePredefinedChoices

abstract var usePredefinedChoices: Boolean(source)

Enables using choices from SlashParameterResolver.getPredefinedChoices.

Return

true to enable using choices from SlashParameterResolver.getPredefinedChoices.

See also

SlashOption.usePredefinedChoices

Throws

IllegalStateException

If choices are set.

Generated by Dokka
© 2025 Copyright