BConfigBuilder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val classes: MutableSet<Class<*>>

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@set:JvmName(name = "disableExceptionsInDMs")
open override var disableExceptionsInDMs: Boolean

Disables sending exceptions to the bot owners

Link copied to clipboard
@set:JvmName(name = "enableOwnerBypass")
open override var enableOwnerBypass: Boolean

Enables bot owners to bypass certain limits.

Link copied to clipboard
open override var enableShutdownHook: Boolean

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

Link copied to clipboard
open override val ignoredEventIntents: MutableSet<Class<out Event>>

Events for which the event waiter must ignore intent requirements.

Link copied to clipboard

Gateway intents to ignore when checking for event listeners intents.

Link copied to clipboard
open override var ignoreRestRateLimiter: Boolean

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

Link copied to clipboard
Link copied to clipboard
open override val packages: MutableSet<String>

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

Link copied to clipboard
open override val predefinedOwnerIds: MutableSet<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

Functions

Link copied to clipboard
inline fun <T : Any> addClass()
fun addClass(clazz: Class<*>)

Adds a specific class containing services, commands, handlers, listeners, etc...

Link copied to clipboard
fun addPredefinedOwners(vararg ownerIds: Long)

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

Link copied to clipboard
fun addSearchPath(@Language(value = "Java", prefix = "/** @see ", suffix = " */") packageName: String)

Adds this package for class discovery. All services, commands, handlers, listeners, etc... will be read from these packages.

Link copied to clipboard
Link copied to clipboard
fun build(): BConfig
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun registerModule(configuration: IConfig)

Registers a configuration for the relevant module, enabling the features provided by the module.

Link copied to clipboard
Link copied to clipboard