All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.json.response.Gateway.kt Maven / Gradle / Ivy

package dev.kord.rest.json.response

import dev.kord.common.serialization.DurationInMilliseconds
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
public data class GatewayResponse(val url: String)

@Serializable
public data class BotGatewayResponse(
    val url: String,
    val shards: Int,
    @SerialName("session_start_limit")
    val sessionStartLimit: SessionStartLimitResponse
)

@Serializable
public data class SessionStartLimitResponse(
    val total: Int,
    val remaining: Int,
    @SerialName("reset_after")
    val resetAfter: DurationInMilliseconds,
    @SerialName("max_concurrency")
    val maxConcurrency: Int
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy