featureOrNull

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

Gets the currently installed Feature instance, if present.