Package-level declarations

Types

Link copied to clipboard
@Serializable
data class CreateDM(val recipientId: String)
Link copied to clipboard
@Serializable
data class CreateGuild(val name: String, val voiceRegionId: String? = null, val base64IconData: String? = null, val verificationLevel: VerificationLevel? = null, val defaultNotificationsLevel: NotificationsLevel? = null, val explicitContentFilterLevel: ExplicitContentFilterLevel? = null, val roles: List<CreateGuildRole> = emptyList(), val channels: List<CreateChannel> = emptyList(), val afkChannelId: String? = null, val afkTimeoutSeconds: Int? = null, val systemChannelId: String? = null)
Link copied to clipboard
@Serializable
data class GatewayBotUrl(val url: String, val shards: Int, val sessionStartLimit: SessionStartLimit)

Response from the API to get the gateway url for bots.

Link copied to clipboard
@Serializable
data class GatewayUrl(val url: String)

Response from the API to get the gateway url.

Link copied to clipboard

A REST client for a user and their discord-wide content

Link copied to clipboard
@Serializable
data class ModifyUser(val username: String, val base64AvatarData: String?)
Link copied to clipboard
@Serializable
data class PartialGuild(val userIsOwner: Boolean, val permissions: Permissions, val iconHash: String?, val id: String, val name: String)
Link copied to clipboard
@Serializable
data class SessionStartLimit(val totalSessions: Int, val remainingSessions: Int, val sessionLimitResetsIn: Int)

Information on the limits on starting sessions.