Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
abstract override val context: BContext
Link copied to clipboard

List of filters applied to this component.

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.

Functions

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

Applies a filter to this component.

Link copied to clipboard
@CheckReturnValue
open fun addPermissions(vararg permissions: Permission): PersistentEntitySelectBuilder
@CheckReturnValue
abstract fun addPermissions(permissions: Collection<Permission>): PersistentEntitySelectBuilder

Adds permissions to the constraints

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

Adds role IDs to the constraints

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

Adds role IDs to the constraints

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

Adds user IDs to the constraints

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

Adds user IDs to the constraints

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

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

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

Allows manipulating the InteractionConstraints instance

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

Replaces the current interaction constraints with the given ones.

Link copied to clipboard

Convenience extension to load an ComponentInteractionFilter service.

Link copied to clipboard
abstract override fun getId(): Nothing
Link copied to clipboard
open fun getMaxValues(): Int
Link copied to clipboard
open fun getMinValues(): Int
Link copied to clipboard
@Nullable
open fun getPlaceholder(): String?
Link copied to clipboard
open fun isDisabled(): Boolean
Link copied to clipboard
@CheckReturnValue
abstract fun noTimeout(): PersistentEntitySelectBuilder

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): PersistentEntitySelectBuilder

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

Link copied to clipboard
@Nonnull
open fun setChannelTypes(@Nonnull vararg p0: ChannelType): EntitySelectMenu.Builder
Link copied to clipboard
Link copied to clipboard
abstract override fun setId(customId: String): EntitySelectMenu.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Nonnull
open fun setPlaceholder(@Nullable p0: String?): EntitySelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setRequiredRange(p0: Int, p1: Int): EntitySelectMenu.Builder
Link copied to clipboard

The minimum and maximum amount of values a user can select.

Link copied to clipboard
@CheckReturnValue
abstract fun singleUse(singleUse: Boolean): PersistentEntitySelectBuilder

Sets this component as being usable once.

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

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): PersistentEntitySelectBuilder
@CheckReturnValue
open fun timeout(timeout: Long, timeoutUnit: TimeUnit): PersistentEntitySelectBuilder

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