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
Link copied to clipboard
fun LocalizableTextCommand.replyGuild(localizationPath: String, vararg entries: PairEntry): MessageCreateAction
Link copied to clipboard
fun LocalizableTextCommand.replyLocalized(locale: Locale, localizationPath: String, vararg entries: PairEntry): MessageCreateAction
Link copied to clipboard
Link copied to clipboard
fun LocalizableTextCommand.respondLocalized(locale: Locale, localizationPath: String, vararg entries: PairEntry): MessageCreateAction