common / me.schlaubi.regnumutils.command.configuration / CommandClientConfiguration

CommandClientConfiguration

interface CommandClientConfiguration

Container for command client options.

See Also

MutableCommandClientConfiguration

ImmutableCommandClientConfiguration

Properties

acceptMentionPrefix

abstract val acceptMentionPrefix: Boolean

Whether the bot should listen for commands prefixed by its mention or not.

alwaysDefaultPrefix

abstract val alwaysDefaultPrefix: Boolean

Whether the default prefix should always be valid or not. Event if there is a custom prefix for that guild

defaultPrefix

abstract val defaultPrefix: String

The default prefix.

ownerPermission

abstract val ownerPermission: Boolean

Whether the owner should be allowed to execute every command or not.

owners

abstract val owners: List<Long>

A list of the bot-owner's id's

sendTyping

abstract val sendTyping: Boolean

Whether the bot should send typing before executing the command or not.

Functions

buildPermissionErrorMessage

abstract fun buildPermissionErrorMessage(context: Context): Message

A function that build an permission error for the context.

Inheritors

ImmutableCommandClientConfiguration

class ImmutableCommandClientConfiguration : CommandClientConfiguration

An immutable implementation of CommandClientConfiguration

MutableCommandClientConfiguration

class MutableCommandClientConfiguration : CommandClientConfiguration

A mutable implementation of the CommandClientConfiguration.