BotCommandsMessagesFactory

@InterfacedService(acceptMultiple = false)
interface BotCommandsMessagesFactory(source)

Factory of BotCommandsMessages, the default implementation is DefaultBotCommandsMessagesFactory, or, if a non-default DefaultMessagesFactory exists, an adapter is used.

Complete customization

Returning a BotCommandsMessagesFactory from a service factory will disable the default implementation, this will let you return a completely custom instance, in which you can craft entirely custom messages in any way you see fit.

Inheritors

Functions

Link copied to clipboard
abstract fun get(locale: Locale): BotCommandsMessages

Retrieves a BotCommandsMessages instance for the given locale.

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

abstract fun get(event: Interaction): BotCommandsMessages

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