prefix property Null safety
final
A function called to determine the prefix for a specific message.
This function should return a String representing the prefix to use for a given message.
For example, for a prefix of !
:
(_) => '!'
Or, for either !
or $
as a prefix:
(message) => message.content.startsWith('!') ? '!' : '$'
You might also be interested in:
Implementation
final String Function(IMessage) prefix;