BConfig

Properties

Link copied to clipboard
Link copied to clipboard
@ConfigurationValue(path = "botcommands.core.classes", type = "java.util.Set<java.lang.Class<?>>")
abstract val classes: Set<Class<*>>

Additional classes the framework will scan through for services, commands, handlers...

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@ConfigurationValue(path = "botcommands.core.disableAutocompleteCache", defaultValue = "false")
@DeprecatedValue(reason = "Moved to BApplicationConfig", replacement = "botcommands.application.disableAutocompleteCache")
open val disableAutocompleteCache: Boolean

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

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

Disables sending exceptions to the bot owners

Link copied to clipboard
@ConfigurationValue(path = "botcommands.core.ignoredEventIntents", type = "java.util.Set<java.lang.Class<net.dv8tion.jda.api.events.Event>>")
abstract val ignoredEventIntents: Set<Class<out Event>>

Events for which the event waiter must ignore intent requirements.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.core.ignoredIntents")
abstract val ignoredIntents: Set<GatewayIntent>

Gateway intents to ignore when checking for event listeners intents.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.core.ignoreRestRateLimiter")
abstract val ignoreRestRateLimiter: Boolean

Suppresses warnings about the default RestRateLimiter being used for large bots.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val ownerIds: Set<Long>

User IDs of the bot owners, allowing bypassing cooldowns, user permission checks, and having hidden commands shown.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.core.packages")
abstract val packages: Set<String>

The packages the framework will scan through for services, commands, handlers...

Link copied to clipboard
@ConfigurationValue(path = "botcommands.core.predefinedOwnerIds")
abstract val predefinedOwnerIds: Set<Long>

Predefined user IDs of the bot owners, allowing bypassing cooldowns, user permission checks, and having hidden commands shown.

Link copied to clipboard
Link copied to clipboard
abstract val textConfig: BTextConfig

Functions

Link copied to clipboard
open fun isOwner(userId: Long): Boolean

Whether this user is one of the bot owners.