Files
zunda-bot/Sources/DiscordKit/Bot.swift

17 lines
324 B
Swift

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