I18nBuilder

Builder used to configure i18n options.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

List of locales which are used for application command names (without defaultLocale).

Link copied to clipboard
Link copied to clipboard

Callables used to resolve a Locale object for the given guild, channel, and user.

Functions

Link copied to clipboard
@JvmName(name = "applicationCommandLocale_v1")
fun applicationCommandLocale(vararg locales: Locale)
@JvmName(name = "applicationCommandLocale_v2")
fun applicationCommandLocale(vararg locales: Locale)
@JvmName(name = "applicationCommandLocale_c1")
fun applicationCommandLocale(locales: Collection<Locale>)
@JvmName(name = "applicationCommandLocale_c2")
fun applicationCommandLocale(locales: Collection<Locale>)

Registers locales as application command languages.

Link copied to clipboard

Registers a LocaleResolver using Interaction.guildLocale.

Link copied to clipboard

Registers a LocaleResolver using Interaction.locale.

Link copied to clipboard

Register a locale resolver, returning the required Locale object or null.

Link copied to clipboard

Call this with a builder (usually the class constructor) to set the translations provider.