DiscordKit feat: impl getGatewayURL

This commit is contained in:
2026-03-12 08:00:07 -04:00
parent cc489fccb6
commit d42227ba55
9 changed files with 135 additions and 27 deletions

View 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
}