BApplicationConfig

Properties

Link copied to clipboard
@ConfigurationValue(path = "botcommands.application.localizations")
abstract val baseNameToLocalesMap: Map<String, List<DiscordLocale>>

Mappings between the base bundle name and the locales it supports.

Link copied to clipboard

Configuration of the application commands cache.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.application.diffEngine", defaultValue = "new")
@DeprecatedValue(reason = "Moved to the 'cache' prefix", replacement = "botcommands.application.cache.diffEngine")
open val diffEngine: DiffEngine

The diff engine to use when comparing old and new application commands, to determine if commands needs to be updated.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.application.disableAutocompleteCache", defaultValue = "false")
abstract val disableAutocompleteCache: Boolean

Disables autocomplete caching, unless CacheAutocomplete.forceCache is set to true.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.application.enable", defaultValue = "true")
abstract val enable: Boolean

Whether application commands should be listened for.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.application.forceGuildCommands", defaultValue = "false")
abstract val forceGuildCommands: Boolean

Sets whether all application commands should be guild-only, regardless of the command scope on the annotation.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.application.logApplicationCommandData", defaultValue = "false")
@DeprecatedValue(reason = "Moved to the 'cache' prefix", replacement = "botcommands.application.cache.logDataIf")
open val logApplicationCommandData: Boolean

Whether the raw JSON of the application commands should be logged when an update is required.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.application.logMissingLocalizationKeys", defaultValue = "false")
abstract val logMissingLocalizationKeys: Boolean

Whether to log a WARN if a localization key isn't found when registering the commands.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.application.onlineAppCommandCheckEnabled", defaultValue = "false")
@DeprecatedValue(reason = "Moved to the 'cache' prefix", replacement = "botcommands.application.cache.checkOnline")
open val onlineAppCommandCheckEnabled: Boolean

Enables the library to compare local commands against Discord's command, to check if application commands need to be updated.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.application.slashGuildIds")
abstract val slashGuildIds: List<Long>

If not empty, only these guilds will have their application commands updated.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.application.testGuildIds")
abstract val testGuildIds: List<Long>

Test guilds IDs for all commands annotated with Test