getPreferredPrefix

Returns the preferred prefix this bot is able to respond to, in the specified guild, or null if no prefix could be determined, in which case text commands are not usable.

As a reminder, TextPrefixSupplier.getPreferredPrefix takes over the prefixes set in BTextConfig.


Deprecated

Now requires a GuildMessageChannel

Replace with

this.getPreferredPrefix(channel)

Returns the preferred prefix for triggering this bot, or null if BTextConfig.usePingAsPrefix is disabled and no prefix was added in BTextConfig.prefixes.