Localizable Text Command
Allows you to configure the localization settings of this text command event, as well as retrieve a localization context from it.
Configuring localization bundle and prefix
You can change the bundle and prefix in the first lines of your interaction handler, with localizationBundle and localizationPrefix.
Configuring the guild locale source
They are by default retrieved from the guild, but you can get them in other ways by implementing TextCommandLocaleProvider.
See also
Inheritors
Properties
Functions
Retrieves a DefaultMessages instance, using a locale suitable for messages sent to the user.
Returns the localized message at the following path, using the guild's locale and provided parameters.
Returns the localized message at the following path, using the guild's locale and provided parameters.
Returns a localization context for the provided bundle name and path prefix, using the locale from TextCommandLocaleProvider.getDiscordLocale.
Returns the localized message at the following path, using the provided locale and parameters.
Replies with the localized message at the following path, using the guild's locale and provided parameters.
Replies with the localized message at the following path, using the guild's locale and provided parameters.
Replies with the localized message at the following path, using the provided locale and parameters.
Replies with the localized message at the following path, using the provided locale and parameters.
Responds with the localized message at the following path, using the guild's locale and provided parameters.
Responds with the localized message at the following path, using the guild's locale and provided parameters.
Responds with the localized message at the following path, using the provided locale and parameters.
Responds with the localized message at the following path, using the provided locale and parameters.