Properties

Link copied to clipboard
open override val componentType: ComponentType
Link copied to clipboard
Link copied to clipboard
open override val context: BContext
Link copied to clipboard

List of filters applied to this component.

Link copied to clipboard
open override val handler: ComponentHandler?
Link copied to clipboard
Link copied to clipboard
open override val lifetimeType: LifetimeType
Link copied to clipboard
open override var oneUse: Boolean

Sets this component as being usable once.

Link copied to clipboard
open override val rateLimitGroup: String?
Link copied to clipboard
open override var resetTimeoutOnUse: Boolean

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

Link copied to clipboard
open override var singleUse: Boolean

Sets this component as being usable once.

Link copied to clipboard
open override val timeout: ComponentTimeout?
Link copied to clipboard
open override val timeoutDuration: Duration?

Functions

Link copied to clipboard
@CheckReturnValue
open override fun addFilter(filter: ComponentInteractionFilter<*>): EphemeralStringSelectBuilder
@CheckReturnValue
open override fun addFilter(filterType: Class<out ComponentInteractionFilter<*>>): EphemeralStringSelectBuilder

Applies a filter to this component.

Link copied to clipboard
@Nonnull
open fun addOption(@Nonnull p0: String, @Nonnull p1: String): StringSelectMenu.Builder
@Nonnull
open fun addOption(@Nonnull p0: String, @Nonnull p1: String, @Nonnull p2: String): StringSelectMenu.Builder
@Nonnull
open fun addOption(@Nonnull p0: String, @Nonnull p1: String, @Nonnull p2: Emoji): StringSelectMenu.Builder
@Nonnull
open fun addOption(@Nonnull p0: String, @Nonnull p1: String, @Nullable p2: String?, @Nullable p3: Emoji?): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun addOptions(@Nonnull vararg p0: SelectOption): StringSelectMenu.Builder
Link copied to clipboard
@CheckReturnValue
open override fun addPermissions(vararg permissions: Permission): EphemeralStringSelectBuilder
@CheckReturnValue
open override fun addPermissions(permissions: Collection<Permission>): EphemeralStringSelectBuilder

Adds permissions to the constraints

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

Adds role IDs to the constraints

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

Adds role IDs to the constraints

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

Adds user IDs to the constraints

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

Adds user IDs to the constraints

Link copied to clipboard
@CheckReturnValue
open override fun bindTo(handler: Consumer<StringSelectEvent>): EphemeralStringSelectBuilder
open override fun bindTo(handler: suspend (StringSelectEvent) -> Unit): EphemeralStringSelectBuilder

Binds the given handler to this component.

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

Allows manipulating the InteractionConstraints instance

@CheckReturnValue
open override fun constraints(constraints: InteractionConstraints): EphemeralStringSelectBuilder

Replaces the current interaction constraints with the given ones.

Link copied to clipboard

Convenience extension to load an ComponentInteractionFilter service.

Link copied to clipboard
open override fun getId(): Nothing
Link copied to clipboard
open fun getMaxValues(): Int
Link copied to clipboard
open fun getMinValues(): Int
Link copied to clipboard
@Nonnull
open fun getOptions(): MutableList<SelectOption>
Link copied to clipboard
@Nullable
open fun getPlaceholder(): String?
Link copied to clipboard
open fun isDisabled(): Boolean
Link copied to clipboard
@CheckReturnValue
open override fun noTimeout(): EphemeralStringSelectBuilder

Removes the timeout from this component.

Link copied to clipboard
@CheckReturnValue
open override fun oneUse(oneUse: Boolean): EphemeralStringSelectBuilder

Sets this component as being usable once.

Link copied to clipboard
@CheckReturnValue
open override fun rateLimitReference(group: String): EphemeralStringSelectBuilder

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

Link copied to clipboard
open override fun resetTimeoutOnUse(resetTimeoutOnUse: Boolean): EphemeralStringSelectBuilder

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

Link copied to clipboard
@Nonnull
open fun setDefaultOptions(@Nonnull vararg p0: SelectOption): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setDefaultValues(@Nonnull vararg p0: String): StringSelectMenu.Builder
Link copied to clipboard
Link copied to clipboard
open override fun setId(customId: String): StringSelectMenu.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Nonnull
open fun setPlaceholder(@Nullable p0: String?): StringSelectMenu.Builder
Link copied to clipboard
@Nonnull
open fun setRequiredRange(p0: Int, p1: Int): StringSelectMenu.Builder
Link copied to clipboard

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

Link copied to clipboard
@CheckReturnValue
open override fun singleUse(singleUse: Boolean): EphemeralStringSelectBuilder

Sets this component as being usable once.

Link copied to clipboard
@CheckReturnValue
open override fun timeout(timeout: Duration, handler: Runnable): EphemeralStringSelectBuilder
open override fun timeout(timeout: Duration, handler: suspend () -> Unit): EphemeralStringSelectBuilder
@CheckReturnValue
open override fun timeout(timeout: Long, timeoutUnit: TimeUnit, handler: Runnable): EphemeralStringSelectBuilder

Sets the timeout on this component, invalidating the component on expiration, and running the given timeout handler.

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

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