UnsafeUserSelectMenu

Constructors

Link copied to clipboard
constructor(timeoutTask: Task?, modal: () -> M? = null)

Properties

Link copied to clipboard
lateinit var body: suspend UnsafeUserSelectMenuContext<M>.(modal: M?) -> Unit
Link copied to clipboard
Link copied to clipboard
open val checkList: MutableList<CheckWithCache<SelectMenuInteractionCreateEvent>>
Link copied to clipboard
Link copied to clipboard
open override var defaultUsers: MutableList<Snowflake>
Link copied to clipboard
Link copied to clipboard
open var disabled: Boolean?
Link copied to clipboard
open var id: String
Link copied to clipboard

Initial response type. Change this to decide what happens when this menu's action is executed.

Link copied to clipboard
val kord: Kord
Link copied to clipboard
open override var locking: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val modal: () -> M? = null
Link copied to clipboard
open override var mutex: Mutex?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val requiredPerms: MutableSet<Permission>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val timeoutTask: Task?
Link copied to clipboard
open override val unitWidth: Int

Functions

Link copied to clipboard
fun action(action: suspend UnsafeUserSelectMenuContext<M>.(modal: M?) -> Unit)
Link copied to clipboard
open override fun apply(builder: ActionRowBuilder)
Link copied to clipboard
open fun applyUserSelectMenu(selectMenu: SelectMenu<*, *>, builder: ActionRowBuilder)
Link copied to clipboard
open suspend override fun call(event: SelectMenuInteractionCreateEvent)
Link copied to clipboard
open fun check(vararg checks: CheckWithCache<SelectMenuInteractionCreateEvent>)
open fun check(check: CheckWithCache<SelectMenuInteractionCreateEvent>)
Link copied to clipboard
open suspend fun checkBotPerms(context: UnsafeUserSelectMenuContext<M>)
Link copied to clipboard
open override fun createContext(event: SelectMenuInteractionCreateEvent, interactionResponse: MessageInteractionResponseBehavior?, cache: <Error class: unknown class><Any>): UnsafeUserSelectMenuContext<M>

Function to create the context of the select menu.

Link copied to clipboard
open fun defaultUser(vararg users: Snowflake)
open fun defaultUser(vararg users: UserBehavior)
open fun defaultUser(users: Collection<Snowflake>)
Link copied to clipboard
open fun disable()
Link copied to clipboard
open fun enable()
Link copied to clipboard
open suspend fun firstSentryBreadcrumb(context: UnsafeUserSelectMenuContext<M>, component: SelectMenu<*, *>)
Link copied to clipboard
open override fun getKoin(): Koin
Link copied to clipboard
open suspend fun handleError(context: UnsafeUserSelectMenuContext<M>, t: Throwable, button: SelectMenu<*, *>)
Link copied to clipboard
open suspend fun lock()
Link copied to clipboard
fun requireBotPermissions(vararg perms: Permission)
Link copied to clipboard
open suspend override fun respondText(context: UnsafeUserSelectMenuContext<M>, message: Key, failureType: FailureReason<*>)
Link copied to clipboard
open suspend fun runChecks(event: SelectMenuInteractionCreateEvent, cache: MutableStringKeyedMap<Any>): Boolean
Link copied to clipboard
open suspend fun runStandardChecks(event: SelectMenuInteractionCreateEvent, cache: MutableStringKeyedMap<Any>): Boolean
Link copied to clipboard
open fun unlock()
Link copied to clipboard
open override fun validate()
Link copied to clipboard
open suspend fun <T> withLock(body: suspend () -> T)