BotConfiguration

data class BotConfiguration(    val packageName: String,     val mentionAsPrefix: Boolean,     val logStartup: Boolean,     val documentCommands: Boolean,     val recommendCommands: Boolean,     val searchCommands: Boolean,     val deleteInvocation: Boolean,     val dualRegistry: Boolean,     val commandReaction: DiscordEmoji?,     val theme: Color?,     val intents: Intents,     val defaultPermissions: Permissions,     val entitySupplyStrategy: EntitySupplyStrategy<*>,     prefix: suspend (DiscordContext) -> String,     mentionEmbed: Pair<String?, suspend EmbedBuilder.(DiscordContext) -> Unit?>,     exceptionHandler: suspend DktException<*>.() -> Unit)

Contains all properties configured when the bot is created.

Constructors

Link copied to clipboard
fun BotConfiguration(    packageName: String,     mentionAsPrefix: Boolean,     logStartup: Boolean,     documentCommands: Boolean,     recommendCommands: Boolean,     searchCommands: Boolean,     deleteInvocation: Boolean,     dualRegistry: Boolean,     commandReaction: DiscordEmoji?,     theme: Color?,     intents: Intents,     defaultPermissions: Permissions,     entitySupplyStrategy: EntitySupplyStrategy<*>,     prefix: suspend (DiscordContext) -> String,     mentionEmbed: Pair<String?, suspend EmbedBuilder.(DiscordContext) -> Unit?>,     exceptionHandler: suspend DktException<*>.() -> Unit)

Properties

Link copied to clipboard
val commandReaction: DiscordEmoji?

A reaction added to the command invocation message.

Link copied to clipboard
val defaultPermissions: Permissions

The Permissions used to restrict command usage.

Link copied to clipboard
val deleteInvocation: Boolean

Delete a command invocation message after execution.

Link copied to clipboard
val documentCommands: Boolean

Generate a markdown file of command info.

Link copied to clipboard
val dualRegistry: Boolean

Allow invocation of a slash command as a text command.

Link copied to clipboard
val entitySupplyStrategy: EntitySupplyStrategy<*>

EntitySupplyStrategy for use in Kord cache.

Link copied to clipboard
val intents: Intents

Additional gateway Intents to register manually.

Link copied to clipboard
val logStartup: Boolean

Display log information when the bot starts.

Link copied to clipboard
val mentionAsPrefix: Boolean

Use the bot mention (@Bot) as a prefix.

Link copied to clipboard
val packageName: String

The detected package name for the bot.

Link copied to clipboard
val recommendCommands: Boolean

Recommend the closest command name to an invalid one.

Link copied to clipboard
val searchCommands: Boolean

Allow command searching with 'search '.

Link copied to clipboard
val theme: Color?

The color theme of internal embeds (i.e. Help).