BConfigProps

Properties

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
@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.enableOwnerBypass", defaultValue = "false")
abstract val enableOwnerBypass: Boolean

Enables bot owners to bypass certain limits.

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

Whether to use a shutdown hook to call BContext.shutdownNow when the JVM is exiting gracefully.

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", defaultValue = "false")
abstract val ignoreRestRateLimiter: Boolean

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

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.