get

open override fun get(locale: Locale): DefaultBotCommandsMessages(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.


open override fun get(event: Interaction): DefaultBotCommandsMessages(source)

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

By default, this uses UserLocaleProvider to get the locale.