DiscordKit: can receive and decode hello event
This commit is contained in:
@@ -9,8 +9,11 @@ public struct Bot {
|
||||
public init(token: String) async throws {
|
||||
client = ApiClient(token: token)
|
||||
|
||||
let gateway = try await client.getGatewayURL()
|
||||
let gatewayURL = try await client.getGatewayURL()
|
||||
|
||||
print(gatewayURL.absoluteURL)
|
||||
let gateway = GatewayClient(gatewayURL: gatewayURL)
|
||||
try await gateway.openConnection()
|
||||
|
||||
print(gateway.absoluteURL)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user