addResponseBundle

fun addResponseBundle(responseBundle: String)(source)

Adds a localization bundle for localizing interaction responses, with LocalizableInteraction, not to be confused with those used to localize commands.

As a reminder, the localization bundles are in bc_localization by default.

For example: MyCommandResponses will, by default, find bundles similar to /bc_localization/MyCommands_<locale>.json.

See DefaultLocalizationMapProvider and DefaultJsonLocalizationMapReader for default implementation details.

Spring property: botcommands.localization.responseBundles

See also