DefaultMessages

Helper class to translate framework-specific messages.

The default values are contained in the resources, at /bc_localization/DefaultMessages-default.json.

You may change the default values by:

  • Creating a new DefaultMessages.json
  • Creating language variations with a file of the same name, suffixed by the locale tag, for example /bc_localization/DefaultMessages_fr.json

You can always customize:

Most of the time it's easier to just add your new localization files in /bc_localization.

The localization paths must not be changed, the templates can have their values in any order, use different format specifiers, but need to keep the same names.

Refer to Localization for more details.

See also

Constructors

Link copied to clipboard
constructor(@NotNull localizationService: @NotNull LocalizationService, @NotNull locale: @NotNull Locale)
THIS IS NOT A PUBLIC CONSTRUCTOR

Functions

Link copied to clipboard
open fun getBotPermErrorMsg(permissions: Set<Permission>): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getCommandNotFoundMsg(suggestions: String): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getGuildRateLimitMsg(timestamp: Timestamp): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getPermission(permission: Permission): @NotNull String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getUserPermErrorMsg(permissions: Set<Permission>): String
Link copied to clipboard
open fun getUserRateLimitMsg(timestamp: Timestamp): String