open class CommandClientBuilder
CommandClientBuilder(jda: JDA!) CommandClientBuilder(shardManager: ShardManager!)
Creates a |
open fun acceptMentionPrefix(acceptMentionPrefix: Boolean): CommandClientBuilder
Sets whether the bot should accept a mention as a command prefix or not. |
|
open fun addBotOwners(vararg botOwnerIds: Long!): CommandClientBuilder open fun addBotOwners(botOwnerIds: MutableCollection<Long!>!): CommandClientBuilder
Adds bot owners. |
|
open fun build(): CommandClient
Builds the CommandClient. |
|
open fun enableDefaultPrefixOverride(alwaysDefaultPrefix: Boolean): CommandClientBuilder
Let the bot always accept the default prefix even if there is a custom one. |
|
open fun enableOwnerPermissions(ownerPermission: Boolean): CommandClientBuilder
Sets whether the owner should be allowed to execute all commands or not. |
|
open fun enableTyping(sendTyping: Boolean): CommandClientBuilder
Lets the bot send typing before executing a command. |
|
open fun getCommandListener(): Class<out CommandListenerBase!>
Returns the Class of the currently set |
|
open fun getCommands(): MutableList<Command!>!
Returns all currently registered commands. |
|
open fun getConfiguration(): CommandClientConfiguration
Returns the currently used CommandClientConfiguration. |
|
open fun getExecutor(): ExecutorService
Returns the executor used to execute |
|
open fun getInformationProvider(): InformationProvider!
Returns the information provider. |
|
open fun getPermissionHandler(): PermissionHandler
Returns the currently set permission handler. |
|
open fun registerCommands(vararg commands: Command!): CommandClientBuilder open fun registerCommands(commands: MutableCollection<Command!>!): CommandClientBuilder
Registers commands without overwriting already registered command. |
|
open fun sendTyping(sendTyping: Boolean): CommandClientBuilder
Sets whether the bot should send typing before it parses commands or not. |
|
open fun setCommandListener(commandListener: Class<out CommandListenerBase!>): CommandClientBuilder!
Sets the Class of the currently set |
|
open fun setCommands(commands: MutableList<Command!>): CommandClientBuilder
Sets all currently registered |
|
open fun setConfiguration(configuration: CommandClientConfiguration): CommandClientBuilder
Sets the currently used CommandClientConfiguration. |
|
open fun setExecutor(executor: ExecutorService): CommandClientBuilder
Sets the executor used to execute |
|
open fun setInformationProvider(informationProvider: InformationProvider!): CommandClientBuilder
Sets the information provider. |
|
open fun setOwners(owners: MutableList<Long!>!): CommandClientBuilder
Sets the list of bot owners. |
|
open fun setPermissionErrorMessageBuilder(permissionErrorMessageBuilder: Function<Context, Message>!): CommandClientBuilder
Sets the builder for the permissions message that will get send to a user when |
|
open fun setPermissionHandler(permissionHandler: PermissionHandler): CommandClientBuilder
Sets the permission handler to check if a user is allowed to execute a command. |
|
open fun setPrefix(prefix: String!): CommandClientBuilder
Sets the default prefix. |