Package-level declarations
Types
Link copied to clipboard
Main context for BotCommands framework.
Link copied to clipboard
object BotCommands
Entry point for the BotCommands framework.
Link copied to clipboard
Holds owners of this bot.
Link copied to clipboard
class DeclarationSite
Represents a place where something (usually commands) was declared, used in exception messages.
Link copied to clipboard
Interface for embed footer icons requested by getDefaultIconStream.
Link copied to clipboard
Interface for embeds requested by getDefaultEmbed, aiming to reduce boilerplate.
Link copied to clipboard
Dispatches JDA and BC events to @BEventListener methods.
Link copied to clipboard
interface Executable
Base class for any executable method (commands, components, modals...).
Link copied to clipboard
Interface with a method called everytime the framework catches an uncaught exception.
Link copied to clipboard
Adapter class for GlobalExceptionHandler.
Link copied to clipboard
Interface to supply a CoroutineEventManager, ran once at startup.
Link copied to clipboard
interface IDeclarationSiteHolder
Holds information on where this object was created at.
Link copied to clipboard
Link copied to clipboard
@MissingServiceMessage(message = "A service extending JDAService must exist and has to be in the search path" )
Interfaced service to be implemented by the service which creates a JDA instance.
Link copied to clipboard
Interface for settings requested by the framework, such as prefixes, guild locale or guild commands whitelist.
Functions
Link copied to clipboard
inline fun JDAService.create(token: String, memberCachePolicy: MemberCachePolicy? = null, chunkingFilter: ChunkingFilter? = null, activity: Activity? = null, restConfig: RestConfig? = getDefaultRestConfig(), block: JDABuilder.() -> Unit = {}): JDA
Creates a JDABuilder with caches inferred from intents.
Link copied to clipboard
inline fun JDAService.createSharded(token: String, shardRange: IntRange? = null, shardsTotal: Int = -1, login: Boolean = true, memberCachePolicy: MemberCachePolicy? = null, chunkingFilter: ChunkingFilter? = null, noinline activityProvider: (shardId: Int) -> Activity? = null, restConfig: RestConfig? = getDefaultRestConfig(), block: DefaultShardManagerBuilder.() -> Unit = {}): ShardManager
Link copied to clipboard
inline fun JDAService.default(token: String, memberCachePolicy: MemberCachePolicy? = null, chunkingFilter: ChunkingFilter? = null, activity: Activity? = null, restConfig: RestConfig? = getDefaultRestConfig(), block: JDABuilder.() -> Unit = {}): JDA
Creates a JDABuilder with recommended default settings.
Link copied to clipboard
inline fun JDAService.defaultSharded(token: String, shardRange: IntRange? = null, shardsTotal: Int = -1, login: Boolean = true, memberCachePolicy: MemberCachePolicy? = null, chunkingFilter: ChunkingFilter? = null, noinline activityProvider: (shardId: Int) -> Activity? = null, restConfig: RestConfig? = getDefaultRestConfig(), block: DefaultShardManagerBuilder.() -> Unit = {}): ShardManager
Link copied to clipboard
inline fun JDAService.light(token: String, memberCachePolicy: MemberCachePolicy? = null, chunkingFilter: ChunkingFilter? = null, activity: Activity? = null, restConfig: RestConfig? = getDefaultRestConfig(), block: JDABuilder.() -> Unit = {}): JDA
Creates a JDABuilder with low memory profile settings.
Link copied to clipboard
inline fun JDAService.lightSharded(token: String, shardRange: IntRange? = null, shardsTotal: Int = -1, login: Boolean = true, memberCachePolicy: MemberCachePolicy? = null, chunkingFilter: ChunkingFilter? = null, noinline activityProvider: (shardId: Int) -> Activity? = null, restConfig: RestConfig? = getDefaultRestConfig(), block: DefaultShardManagerBuilder.() -> Unit = {}): ShardManager
Link copied to clipboard
Returns the KLogger for the class of this object.