PrefixHandlerFunction typedef

FutureOr<String> PrefixHandlerFunction (
  1. Message message
)

Handler used to determine prefix for command in given environment. Can be used to define different prefixes for different guild, users or dms. Return String containing prefix or null if command cannot be executed.

Implementation

typedef PrefixHandlerFunction = FutureOr<String?> Function(Message message);