Package-level declarations

Types

Link copied to clipboard

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

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

Provides the locale to be used for localizing text command responses, may be useful if the user has set its own locale, for example.

Functions

Link copied to clipboard
fun LocalizableTextCommand.getGuildMessage(localizationPath: String, vararg entries: PairEntry): String

Returns the localized message at the following path, using the guild's locale and provided parameters.

Link copied to clipboard
fun LocalizableTextCommand.replyGuild(localizationPath: String, vararg entries: PairEntry): MessageCreateAction

Replies with the localized message at the following path, using the guild's locale and provided parameters.

Link copied to clipboard
fun LocalizableTextCommand.replyLocalized(locale: Locale, localizationPath: String, vararg entries: PairEntry): MessageCreateAction

Replies with the localized message at the following path, using the provided locale and parameters.

Link copied to clipboard

Responds with the localized message at the following path, using the guild's locale and provided parameters.

Link copied to clipboard
fun LocalizableTextCommand.respondLocalized(locale: Locale, localizationPath: String, vararg entries: PairEntry): MessageCreateAction

Responds with the localized message at the following path, using the provided locale and parameters.