Package-level declarations

Types

Link copied to clipboard

Opt-in marker annotation for the type-safe (localized) messages APIs that are considered experimental and are not subject to compatibility guarantees: The behavior of such API may be changed or the API may be removed completely in any further release.

Link copied to clipboard
annotation class LocalizedContent(val templateKey: String)

Annotates a method as a message supplier.

Link copied to clipboard
annotation class MessageSourceFactory(val bundleName: String, val discordLocales: Array<DiscordLocale> = [], val locales: Array<String> = [], val ignoreEmptyLocales: Boolean = false)

Mandatory annotation for interfaces extending IMessageSourceFactory.

Link copied to clipboard

Allows changing the default locale with another preferred locale, the available locales will depend on how the message source was created.