Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ActivityParty(val id: String? = null, val size: List<Int>? = null)
Link copied to clipboard
Link copied to clipboard
object ActivityTypeSerializer : KSerializer<ActivityType>
Link copied to clipboard
@Serializable
data class Assets(val largeImage: String? = null, val largeImageText: String? = null, val smallImage: String? = null, val smallImageText: String? = null)
Link copied to clipboard

An enum defining all currently supported gateway intents.

Link copied to clipboard
@Serializable(with = GatewayIntentsSerializer::class)
data class GatewayIntents(val value: Int)

An immutable collection of GatewayIntent values stored as a bitmask integer. This is intended for use when creating a Diskord bot instance to signal to the Discord API requested intents.

Link copied to clipboard
Link copied to clipboard
@Serializable
data class GatewayMessage(val opCode: OpCode, val dataPayload: JsonElement?, val sequenceNumber: Int? = null, val event: String? = null)

A message sent through the websocket gateway.

Link copied to clipboard
@Serializable(with = OpCodeSerializer::class)
enum OpCode : Enum<OpCode>

The discord gateway event.

Link copied to clipboard
object OpCodeSerializer : KSerializer<OpCode>
Link copied to clipboard
@Serializable
data class RichPresenceSecrets(val joinParty: String? = null, val spectate: String? = null, val joinInstance: String? = null)
Link copied to clipboard
@Serializable
data class Timestamps(val startEpochMilli: Long? = null, val endEpochMilli: Long? = null)
Link copied to clipboard
@Serializable
data class UserStatusActivity(val name: String, val type: ActivityType, val streamUrl: String? = null, val createdAt: String? = null, val timestamps: Timestamps? = null, val applicationId: String? = null, val details: String? = null, val partyStatus: String? = null, val emoji: Emoji? = null, val party: ActivityParty? = null, val assets: Assets? = null, val secrets: RichPresenceSecrets? = null, val activityIsInstanced: Boolean? = null, val activityFlags: Int? = null)