Package-level declarations

Types

Link copied to clipboard
@InterfacedService(acceptMultiple = false)
interface GuildLocaleProvider

Provides the locale of a guild in a Discord interaction, may be useful if the guild has set its own locale, for example.

Link copied to clipboard

Allows editing an interaction's original message using localized strings, registered from bundles in BLocalizationConfig.responseBundles.

Link copied to clipboard

Allows you to configure the localization settings of this interaction event, retrieve a LocalizableInteractionHook, as well as retrieve a localization context from it.

Link copied to clipboard

Allows sending follow-ups to interactions using localized strings, registered from bundles in BLocalizationConfig.responseBundles.

Link copied to clipboard

Allows replying to interactions using localized strings, registered from bundles in BLocalizationConfig.responseBundles.

Link copied to clipboard
@InterfacedService(acceptMultiple = false)
interface UserLocaleProvider

Provides the locale of a user in a Discord interaction, may be useful if the user has set its own locale, for example.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun LocalizableInteraction.getGuildMessage(localizationPath: String, vararg entries: PairEntry): String
Link copied to clipboard
fun LocalizableInteraction.getUserMessage(localizationPath: String, vararg entries: PairEntry): String
Link copied to clipboard
Link copied to clipboard
fun LocalizableReplyCallback.replyLocalized(locale: Locale, localizationPath: String, vararg entries: PairEntry): ReplyCallbackAction
Link copied to clipboard
fun LocalizableReplyCallback.replyUser(localizationPath: String, vararg entries: PairEntry): ReplyCallbackAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard