BEventListener

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class BEventListener(val async: Boolean = false, val priority: Int = 0, val ignoreIntents: Boolean = false, val timeout: Long = 0, val timeoutUnit: TimeUnit = TimeUnit.SECONDS)(source)

Properties

Link copied to clipboard
val async: Boolean = false

Whether this event listener is executed on its own coroutine, using the event dispatcher scope

Link copied to clipboard
val ignoreIntents: Boolean = false

Whether this event listener should be kept enabled, even if it is missing intents.

Link copied to clipboard
val priority: Int = 0

The priority for this event listener

Link copied to clipboard
val timeout: Long = 0

The time before the coroutine is canceled, using a negative value means no timeout.

Link copied to clipboard

The time unit used for the timeout