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
@KordUnsafe
@KordExperimental
class Unsafe(kord: Kord)

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

Functions

Link copied to clipboard
inline fun <T : Event> Intents.IntentsBuilder.enableEvent()

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

fun Intents.IntentsBuilder.enableEvent(event: KClass<out Event>)

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.IntentsBuilder.enableEvents(vararg events: KClass<out Event>)
fun Intents.IntentsBuilder.enableEvents(events: Iterable<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.

Properties

Link copied to clipboard
val kordLogger: KLogger