preferClassFileAccessors

@ExperimentalMethodAccessorsApi
fun preferClassFileAccessors()(source)(source)

Instructs the framework to prefer using improved reflection calls, with the following benefits:

This feature requires adding the BotCommands-method-accessors-classfile dependency and running on Java 24+, if your bot doesn't fulfill these conditions, this method has no effect.


@ExperimentalMethodAccessorsApi
@get:JvmName(name = "isPreferClassFileAccessors")
var preferClassFileAccessors: Boolean(source)(source)

If enabled, instructs the framework to prefer using improved reflection calls, with the following benefits:

This feature requires adding the BotCommands-method-accessors-classfile dependency and running on Java 24+, if your bot doesn't fulfill these conditions, this method has no effect.