DiscordKit: can receive and decode hello event
This commit is contained in:
@@ -26,11 +26,10 @@ struct ApiClient {
|
||||
let json = JSONDecoder()
|
||||
let decoded = try json.decode(GetGatewayResponse.self, from: data)
|
||||
return decoded.url
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
enum ApiError: Error {
|
||||
public enum ApiError: Error {
|
||||
case invalidResponse
|
||||
case badStatus(_ message: String)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user