Package-level declarations

Types

Link copied to clipboard
class ClientResources(val token: String, val applicationId: Snowflake, val shards: Shards, val maxConcurrency: Int, val httpClient: HttpClient, val defaultStrategy: EntitySupplyStrategy<*>)
Link copied to clipboard
class Kord(val resources: ClientResources, val cache: DataCache, val gateway: MasterGateway, val rest: RestClient, val selfId: Snowflake, eventFlow: MutableSharedFlow<Event>, dispatcher: CoroutineDispatcher, interceptor: GatewayEventInterceptor) : CoroutineScope

The central adapter between other Kord modules and source of core events.

Link copied to clipboard
interface KordObject

An instance than contains a reference to Kord.

Link copied to clipboard

A class that exposes the creation of {Entity}Behavior classes.

Properties

Link copied to clipboard
val kordLogger: KLogger

Functions

Link copied to clipboard

Adds the necessary Intents to receive the specified type of event in all variations and with all data available.

Adds the necessary Intents to receive the specified type of event in all variations and with all data available.

Link copied to clipboard
fun Intents.Builder.enableEvents(vararg events: KClass<out Event>)

Adds the necessary Intents to receive the specified types of events in all variations and with all data available.

Link copied to clipboard
inline suspend fun Kord(token: String, builder: KordBuilder.() -> Unit = {}): Kord

Builds a Kord instance configured by the builder.

Link copied to clipboard
inline fun <T : Event> Kord.on(scope: CoroutineScope = this, noinline consumer: suspend T.() -> Unit): Job

Convenience method that will invoke the consumer on every event T created by Kord.events.