Package-level declarations

Types

Link copied to clipboard
abstract class EphemeralSelectMenu<C : SelectMenuContext, EphemeralInteractionContext, M : ModalForm>(timeoutTask: Task?, val modal: () -> M? = null, var initialResponseBuilder: InitialEphemeralSelectMenuResponseBuilder = null) : SelectMenu<C, M>

Class representing an ephemeral-only select (dropdown) menu.

typealias InitialEphemeralSelectMenuResponseBuilder = suspend InteractionResponseCreateBuilder.(SelectMenuInteractionCreateEvent) -> Unit?
Link copied to clipboard
typealias InitialPublicSelectMenuResponseBuilder = suspend InteractionResponseCreateBuilder.(SelectMenuInteractionCreateEvent) -> Unit?
Link copied to clipboard
abstract class PublicSelectMenu<C : SelectMenuContext, PublicInteractionContext, M : ModalForm>(timeoutTask: Task?, val modal: () -> M? = null, var initialResponseBuilder: InitialEphemeralSelectMenuResponseBuilder = null) : SelectMenu<C, M>

Class representing a public-only select (dropdown) menu.

Link copied to clipboard
abstract class SelectMenu<C : SelectMenuContext, M : ModalForm>(timeoutTask: Task?) : ComponentWithAction<SelectMenuInteractionCreateEvent, C, M>

Abstract class representing a select (dropdown) menu component.

Link copied to clipboard
abstract class SelectMenuContext(component: SelectMenu<*, *>, event: SelectMenuInteractionCreateEvent, cache: MutableStringKeyedMap<Any>) : ComponentContext<SelectMenuInteractionCreateEvent>

Abstract class representing the execution context of a select (dropdown) menu component.

Properties

Link copied to clipboard
const val DESCRIPTION_MAX: Int = 100

Maximum length for an option's description.

Link copied to clipboard
const val LABEL_MAX: Int = 100

Maximum length for an option's label.

Link copied to clipboard
const val OPTIONS_MAX: Int = 25

Maximum number of options for a menu.

Link copied to clipboard
const val PLACEHOLDER_MAX: Int = 100

Maximum length for a menu's placeholder.

Link copied to clipboard
const val VALUE_MAX: Int = 100

Maximum length for an option's value.