Package-level declarations

Contains all models and helper functions for Discord Gateway API.

Types

Link copied to clipboard
Link copied to clipboard
data class GatewayPayload<out T> constructor(val opcode: GatewayOpcode, val data: T, val sequence: GatewaySequence? = null, val eventName: EventName? = null)

Generic payload container for communicating with Discord gateway.

Link copied to clipboard
Link copied to clipboard
typealias GatewaySequence = Long
Link copied to clipboard
interface Self : UserSpec

Functions

Link copied to clipboard
inline suspend fun Self.update(block: UserApi.UserPatch.Builder.() -> Unit)
Link copied to clipboard
inline suspend fun Self.updatePresence(block: UpdatePresence.Builder.() -> Unit)