IEphemeralActionableComponent

Allows components to have ephemeral handlers bound to them.

These handlers will not exist anymore after a restart.

Inheritors

Properties

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

List of filters applied to this component.

Functions

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

Applies a filter to this component.

Link copied to clipboard
@CheckReturnValue
open fun bindTo(handler: Consumer<E>): T
abstract fun bindTo(handler: suspend (E) -> Unit): T

Binds the given handler to this component.

Link copied to clipboard

Convenience extension to load an ComponentInteractionFilter service.

Link copied to clipboard
@CheckReturnValue
abstract fun rateLimitReference(reference: ComponentRateLimitReference): T

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