class ImmutableCommandClientConfiguration : CommandClientConfiguration
An immutable implementation of CommandClientConfiguration
ImmutableCommandClientConfiguration(sendTyping: Boolean, acceptMentionPrefix: Boolean, messageBuilder: (Context) -> Message, ownerPermission: Boolean, defaultPrefix: String, alwaysDefaultPrefix: Boolean, owners: List<Long>)
An immutable implementation of 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. |
|
val 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: List<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 buildPermissionErrorMessage(context: Context): Message
A function that build an permission error for the context. |