feature

fun <F : Any> EventDispatcher.feature(feature: EventDispatcherFeature<*, F>): F
fun <F : Any> GatewayDiscordClient.feature(feature: Feature<*, *, F>): F

Gets the currently installed Feature instance, if present. Throws an IllegalStateException if the requested feature is not installed.