RequiredIntents

@Condition(type = RequiredIntentsChecker::class, fail = false)
@Conditional(value = [SpringRequiredIntentsChecker::class])
annotation class RequiredIntents(val intents: GatewayIntent)(source)

Prevents usage of the annotated service if the required intents are not present in JDAService.intents.

Note: If you are using Spring, this checks against the jda.intents property.

See also

Properties

Link copied to clipboard
@get:JvmName(name = "value")
val intents: Array<out GatewayIntent>