dataCollectionMode

var dataCollectionMode: DataCollection

Data collection mode, usually configured in other ways, but you may override that configuration here.

Note: Changing this value at runtime won't do anything.

By default, KordEx determines this by checking, in order:

  • The value of the dataCollection property.

  • The value of the DATA_COLLECTION env var.

  • The value of the settings.dataCollection property in your bot's kordex.properties file, typically generated by the Kord Extensions Gradle plugin.

The values checked above must be one of "none", "minimal", "standard" or "extra" to be valid, or KordEx will throw an exception.

If all the above values are missing, this setting defaults to "standard".

For more information on what data KordEx collects, how to get at it, and how it's stored, please see here: https://docs.kordex.dev/data-collection.html