Package io.facet.core
Types
AttributeKey
Link copied to clipboard
Key for an object that allows for type-safe code.
BotScope
Link copied to clipboard
The bot's coroutine scope, used as the root coroutine scope for event listeners.
EmptyConfig
Link copied to clipboard
EventDispatcherFeature
Link copied to clipboard
Features
Link copied to clipboard
GatewayFeature
Link copied to clipboard
LocalSuspendingVoiceConnectionRegistry
Link copied to clipboard
class LocalSuspendingVoiceConnectionRegistry(registry: VoiceConnectionRegistry) : SuspendingVoiceConnectionRegistry
Content copied to clipboard
SuspendingVoiceConnectionRegistry
Link copied to clipboard
Functions
feature
Link copied to clipboard
fun <F : Any> EventDispatcher.feature(feature: EventDispatcherFeature<*, F>): F
Content copied to clipboard
Gets the currently installed Feature instance, if present. Throws an IllegalStateException if the requested feature is not installed.
featureOrNull
Link copied to clipboard
fun <F : Any> GatewayDiscordClient.featureOrNull(feature: Feature<*, *, F>): F?
Content copied to clipboard
fun <F : Any> EventDispatcher.featureOrNull(feature: EventDispatcherFeature<*, F>): F?
Content copied to clipboard
Gets the currently installed Feature instance, if present.
install
Link copied to clipboard
suspend fun <C : Any> GatewayDiscordClient.install(scope: CoroutineScope, feature: GatewayFeature<C, *>, config: C.() -> Unit = {})
Content copied to clipboard
suspend fun <C : Any> EventDispatcher.install(scope: CoroutineScope, feature: EventDispatcherFeature<C, *>, config: C.() -> Unit = {})
Content copied to clipboard
Installs a Feature into the DiscordClient. The feature is immediately set up, and any event listeners are registered. If applicable, the feature can be configured using the config block.
shutdown
Link copied to clipboard
Logs out of the gateway and cancels all running coroutines.
withPlugins
Link copied to clipboard
fun GatewayBootstrap<GatewayOptions>.withPlugins(configureBlock: suspend GatewayDiscordClient.(CoroutineScope) -> Unit): Mono<Void>
Content copied to clipboard
Configures the gateway client.
fun GatewayBootstrap<GatewayOptions>.withPlugins(configureBlock: suspend EventDispatcher.(CoroutineScope) -> Unit): GatewayBootstrap<GatewayOptions>
Content copied to clipboard
Configures the event dispatcher before any events can be received.