get

abstract fun get(locale: Locale): BotCommandsMessages(source)

Retrieves a BotCommandsMessages instance for the given locale.


Retrieves a BotCommandsMessages instance, with the locale derived from this event.

By default, this uses TextCommandLocaleProvider to get the locale.


abstract fun get(event: Interaction): BotCommandsMessages(source)

Retrieves a BotCommandsMessages instance, with the locale derived from this interaction.

By default, this uses UserLocaleProvider to get the locale.