Bot Configuration
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
constructor(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
A reaction added to the command invocation message.
Link copied to clipboard
The Permissions used to restrict command usage.
Link copied to clipboard
Delete a command invocation message after execution.
Link copied to clipboard
Generate a markdown file of command info.
Link copied to clipboard
Allow invocation of a slash command as a text command.
Link copied to clipboard
EntitySupplyStrategy for use in Kord cache.
Link copied to clipboard
Display log information when the bot starts.
Link copied to clipboard
Use the bot mention (@Bot) as a prefix.
Link copied to clipboard
The detected package name for the bot.
Link copied to clipboard
Recommend the closest command name to an invalid one.
Link copied to clipboard
Allow command searching with 'search