Skip to content

07) Command Modules

ly.ton edited this page Dec 22, 2017 · 8 revisions

CommandModules are there for easy access and to group commands. Any command module provided to the builder can be used as a parameter in a command. The intent of command modules is to provided access to guild settings and other objects not easily obtainable with parameter mapping such as a specific Executor Pool or something.

Prefixes

The prefixes for each guild are provided via a PrefixModule. By default, the prefix is set to the most common one !. Mentions are also supported as a prefix.

If one wishes to use a different unmodifiable prefix, one can use BreadBotClientBuilder#addDefaultPrefixModule(String newPrefix).

If one wishes to implement a prefix on a guild by guild basis, one can supply a where the prefix is supplied via PrefixModule#getPrefix(Guild).

Clone this wiki locally