create

abstract fun create(interaction: Interaction): T(source)

Creates a new message source using the provided interaction.

The default/user locale will be retrieved from UserLocaleProvider, while the guild locale will be retrieved from GuildLocaleProvider.


abstract fun create(event: MessageReceivedEvent): T(source)

Creates a new message source using the provided message event.

The default locale will be retrieved from TextCommandLocaleProvider.


open fun create(guildLocale: Locale): T(source)

Creates a new message source using the provided guild locale, and no user locale.


abstract fun create(guildLocale: Locale, userLocale: Locale?): T(source)

Creates a new message source using the provided guild and user locale.