DiscordKit feat: impl getGatewayURL
This commit is contained in:
17
Sources/DiscordKit/Models.swift
Normal file
17
Sources/DiscordKit/Models.swift
Normal file
@@ -0,0 +1,17 @@
|
||||
import Foundation
|
||||
#if canImport(FoundationNetowrking)
|
||||
import FoundationNetworking
|
||||
#endif
|
||||
|
||||
public struct GetGatewayResponse: Codable {
|
||||
let url: URL
|
||||
let shards: Int
|
||||
let session_start_limit: SessionStartLimit
|
||||
}
|
||||
|
||||
public struct SessionStartLimit: Codable {
|
||||
let total: Int
|
||||
let remaining: Int
|
||||
let reset_after: Int
|
||||
let max_concurrency: Int
|
||||
}
|
||||
Reference in New Issue
Block a user