class MutableCommandClientConfiguration : CommandClientConfiguration
A mutable implementation of the CommandClientConfiguration.
MutableCommandClientConfiguration()
A mutable implementation of the CommandClientConfiguration. |
val acceptMentionPrefix: Boolean
Whether the bot should listen for commands prefixed by its mention or not. |
|
val alwaysDefaultPrefix: Boolean
Whether the default prefix should always be valid or not. Event if there is a custom prefix for that guild |
|
val defaultPrefix: String
The default prefix. |
|
var messageBuilder: (Context) -> Message
A function that build a permission error message |
|
val ownerPermission: Boolean
Whether the owner should be allowed to execute every command or not. |
|
val owners: MutableList<Long>
A list of the bot-owner's id's |
|
val sendTyping: Boolean
Whether the bot should send typing before executing the command or not. |
fun alwaysAcceptDefaultPrefix(alwaysAcceptDefaultPrefix: Boolean): Unit |
|
fun buildPermissionErrorMessage(context: Context): Message
A function that build an permission error for the context. |
|
fun setAcceptMentionPrefix(acceptMentionPrefix: Boolean): Unit
Sets whether the bot should listen for commands prefixed by its mention or not. |
|
fun setDefaultPrefix(prefix: String): Unit |
|
fun setOwnerPermission(ownerPermission: Boolean): Unit |
|
fun setOwners(owners: MutableList<Long>): Unit |
|
fun setPermissionErrorMessageBuilder(builder: Function<Context, Message>): Unit |
|
fun setSendTyping(sendTyping: Boolean): Unit
Sets whether the bot should send typing before executing the command or not. |
|
fun toImmutableCommandClientConfiguration(): ImmutableCommandClientConfiguration
Converts this into an ImmutableCommandClientConfiguration. |