get

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

Retrieves a DefaultMessages instance for the given locale.


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

By default, this uses TextCommandLocaleProvider to get the locale.


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

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

By default, this uses UserLocaleProvider to get the locale.