TextPrefixSupplier

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

Supplies the prefixes which the bot would respond to in a specific guild.

This overrides any other configured prefixes.

Usage: Register your instance as a service with @BService or any annotation that enables your class for dependency injection.

See also

Functions

Link copied to clipboard

Returns the preferred prefix this bot is able to respond to, in the provided guild.

Link copied to clipboard
abstract fun getPrefixes(channel: GuildMessageChannel): List<String>

Returns the prefixes this bot responds to in the specified guild, or an empty list if the bot shouldn't respond to anything.