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,16 @@
import Foundation
#if canImport(FoundationNetowrking)
import FoundationNetworking
#endif
public struct Bot {
let client: ApiClient
public init(token: String) async throws {
client = ApiClient(token: token)
let gateway = try await client.getGatewayURL()
print(gateway.absoluteURL)
}
}