Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
abstract val configs: Collection<IConfig>

An immutable collection of all registered configuration objects.

Link copied to clipboard
open override val configType: Class<BConfig>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Disables sending exceptions to the bot owners.

Link copied to clipboard

Enables bot owners to bypass certain limits.

Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard

Gateway intents to ignore when checking for required intents of event listeners.

Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val packages: Set<String>

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

Link copied to clipboard
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
abstract fun <T : IConfig> getConfigOrNull(type: Class<T>): T?

Returns the configuration object of the provided type, or null if none were registered.

Link copied to clipboard
inline fun <T : IConfig> BConfig.getConfigOrNull(): T?

Returns the configuration object of the provided type, or null if none were registered.