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

commonMain.KordConfiguration.kt Maven / Gradle / Ivy

The newest version!
package dev.kord.common

import dev.kord.common.annotation.KordUnsafe
import kotlin.concurrent.Volatile

public object KordConfiguration {

    private const val REST_GATEWAY_DEFAULT = 10

    /**
     * The [version of Discord's REST API](https://discord.com/developers/docs/reference#api-versioning) Kord uses.
     *
     * Changing this version might lead to errors since Kord is designed to work with the initially set version.
     */
    @Volatile
    @set:KordUnsafe
    public var REST_VERSION: Int = REST_GATEWAY_DEFAULT

    /**
     * The
     * [version of Discord's Gateway](https://discord.com/developers/docs/topics/gateway#connecting-gateway-url-query-string-params)
     * Kord uses.
     *
     * Changing this version might lead to errors since Kord is designed to work with the initially set version.
     */
    @Volatile
    @set:KordUnsafe
    public var GATEWAY_VERSION: Int = REST_GATEWAY_DEFAULT

    /**
     * The
     * [version of Discord's Voice Gateway](https://discord.com/developers/docs/topics/voice-connections#voice-gateway-versioning)
     * Kord uses.
     *
     * Changing this version might lead to errors since Kord is designed to work with the initially set version.
     */
    @Volatile
    @set:KordUnsafe
    public var VOICE_GATEWAY_VERSION: Int = 4
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy