BConfigBuilder

Properties

Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
open override val debugConfig: BDebugConfigBuilder
Link copied to clipboard
@set:JvmName(name = "disableAutocompleteCache")
open override var disableAutocompleteCache: Boolean

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

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

Disables sending exceptions to the bot owners

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

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

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
open override val textConfig: BTextConfigBuilder

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 addOwners(vararg ownerIds: Long)
fun addOwners(ownerIds: Collection<Long>)

Adds predefined owner IDs, disabling automatic bot owners retrieval.

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(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
Link copied to clipboard
Link copied to clipboard
open fun isOwner(userId: Long): Boolean

Whether this user is one of the bot owners.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard