Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
abstract override val context: BContext
Link copied to clipboard
@get:Nonnull
open override var customId: String
Link copied to clipboard

List of filters applied to this component.

Link copied to clipboard
@set:Nonnull
open override var isDisabled: Boolean
Link copied to clipboard
@get:Nullable
@set:Nonnull
open override var isRequired: Boolean?
Link copied to clipboard
@set:Nonnull
open override var maxValues: Int
Link copied to clipboard
@set:Nonnull
open override var minValues: Int
Link copied to clipboard
@get:Nonnull
open val options: List<SelectOption?>
Link copied to clipboard
@get:Nullable
@set:Nonnull
open override var placeholder: String?
Link copied to clipboard

When true, resets the timeout duration everytime this component is used.

Link copied to clipboard
abstract var singleUse: Boolean

Sets this component as being usable once.

Link copied to clipboard
@set:Nonnull
open override var uniqueId: Int

Functions

Link copied to clipboard
@CheckReturnValue
abstract fun addFilter(filterType: Class<out ComponentInteractionFilter>): PersistentStringSelectBuilder

Applies a filter to this component.

Link copied to clipboard
@Nonnull
open fun addOption(@Nonnull label: String, @Nonnull value: String): StringSelectMenu.Builder
@Nonnull
open fun addOption(@Nonnull label: String, @Nonnull value: String, @Nonnull description: String): StringSelectMenu.Builder
@Nonnull
open fun addOption(@Nonnull label: String, @Nonnull value: String, @Nonnull emoji: Emoji): StringSelectMenu.Builder
@Nonnull
open fun addOption(@Nonnull label: String, @Nonnull value: String, @Nullable description: String?, @Nullable emoji: Emoji?): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun addOptions(@Nonnull options: Collection<out SelectOption?>): StringSelectMenu.Builder
@Nonnull
open fun addOptions(@Nonnull vararg options: SelectOption?): StringSelectMenu.Builder
Link copied to clipboard
@CheckReturnValue
abstract fun addPermissions(permissions: Collection<Permission>): PersistentStringSelectBuilder
@CheckReturnValue
open fun addPermissions(vararg permissions: Permission): PersistentStringSelectBuilder

Adds permissions to the constraints

Link copied to clipboard
@CheckReturnValue
open fun addRoleIds(vararg roleIds: Long): PersistentStringSelectBuilder
@CheckReturnValue
abstract fun addRoleIds(roleIds: Collection<Long>): PersistentStringSelectBuilder

Adds role IDs to the constraints

Link copied to clipboard
@CheckReturnValue
abstract fun addRoles(roles: Collection<Role>): PersistentStringSelectBuilder
@CheckReturnValue
open fun addRoles(vararg roles: Role): PersistentStringSelectBuilder

Adds role IDs to the constraints

Link copied to clipboard
@CheckReturnValue
open fun addUserIds(vararg userIds: Long): PersistentStringSelectBuilder
@CheckReturnValue
abstract fun addUserIds(userIds: Collection<Long>): PersistentStringSelectBuilder

Adds user IDs to the constraints

Link copied to clipboard
@CheckReturnValue
abstract fun addUsers(users: Collection<UserSnowflake>): PersistentStringSelectBuilder
@CheckReturnValue
open fun addUsers(vararg users: UserSnowflake): PersistentStringSelectBuilder

Adds user IDs to the constraints

Link copied to clipboard
@CheckReturnValue
open fun bindTo(handlerName: String, vararg data: Any?): PersistentStringSelectBuilder
@CheckReturnValue
abstract fun bindTo(handlerName: String, data: List<Any?>): PersistentStringSelectBuilder

Binds the given handler name with its arguments to this component.

Link copied to clipboard
abstract override fun build(): StringSelectMenu
Link copied to clipboard

Allows manipulating the InteractionConstraints instance

@CheckReturnValue
abstract fun constraints(constraints: InteractionConstraints): PersistentStringSelectBuilder

Replaces the current interaction constraints with the given ones.

Link copied to clipboard

Convenience extension to load an ComponentInteractionFilter service.

Link copied to clipboard
@CheckReturnValue
abstract fun noTimeout(): PersistentStringSelectBuilder

Removes the timeout from this component.

Link copied to clipboard

Sets the rate limiter of this component to one declared by a RateLimitProvider.

Link copied to clipboard
abstract fun resetTimeoutOnUse(resetTimeoutOnUse: Boolean): PersistentStringSelectBuilder

When true, resets the timeout duration everytime this component is used.

Link copied to clipboard
abstract override fun setCustomId(customId: String): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setDefaultOptions(@Nonnull values: Collection<out SelectOption?>): StringSelectMenu.Builder
@Nonnull
open fun setDefaultOptions(@Nonnull vararg values: SelectOption?): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setDefaultValues(@Nonnull vararg values: String?): StringSelectMenu.Builder
@Nonnull
open fun setDefaultValues(@Nonnull values: Collection<String?>): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setDisabled(disabled: Boolean): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setMaxValues(maxValues: Int): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setMinValues(minValues: Int): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setPlaceholder(@Nullable placeholder: String?): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setRequired(@Nullable required: Boolean?): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setRequiredRange(min: Int, max: Int): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setUniqueId(uniqueId: Int): StringSelectMenu.Builder
Link copied to clipboard
@CheckReturnValue
abstract fun singleUse(singleUse: Boolean): PersistentStringSelectBuilder

Sets this component as being usable once.

Link copied to clipboard
@CheckReturnValue
open fun timeout(timeout: Duration, handlerName: String, vararg data: Any?): PersistentStringSelectBuilder
@CheckReturnValue
open fun timeout(timeout: Duration, handlerName: String, data: List<Any?>): PersistentStringSelectBuilder
open fun timeout(timeout: Duration, handlerName: String, vararg data: Any?): PersistentStringSelectBuilder
abstract fun timeout(timeout: Duration, handlerName: String, data: List<Any?>): PersistentStringSelectBuilder
@CheckReturnValue
open fun timeout(timeout: Long, timeoutUnit: TimeUnit, handlerName: String, vararg data: Any?): PersistentStringSelectBuilder
@CheckReturnValue
open fun timeout(timeout: Long, timeoutUnit: TimeUnit, handlerName: String, data: List<Any?>): PersistentStringSelectBuilder

Sets the timeout on this component, invalidating the component on expiration, and running the timeout handler with the given name and its arguments.

@CheckReturnValue
open fun timeout(timeout: Duration): PersistentStringSelectBuilder
@CheckReturnValue
open fun timeout(timeout: Long, timeoutUnit: TimeUnit): PersistentStringSelectBuilder

Sets the timeout on this component, invalidating the component on expiration.