GatewayBotUrl

@Serializable
data class GatewayBotUrl(val url: String, val shards: Int, val sessionStartLimit: SessionStartLimit)(source)

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

Constructors

Link copied to clipboard
constructor(url: String, shards: Int, sessionStartLimit: SessionStartLimit)

Properties

Link copied to clipboard
@SerialName(value = "session_start_limit")
val sessionStartLimit: SessionStartLimit

Information on the limits on starting sessions for this bot.

Link copied to clipboard
val shards: Int

The number of shards discord recommend you use for this bot.

Link copied to clipboard
val url: String

The url to connect to the gateway with.