rename DiscordClient to ApiClient

This commit is contained in:
Andrew Glaze
2026-03-22 13:15:54 -04:00
parent e6426225d7
commit 887f6e46d4
5 changed files with 12 additions and 12 deletions

View File

@@ -4,11 +4,11 @@ import FoundationNetworking
#endif
public actor Bot {
public let client: DiscordClient
public let client: ApiClient
let gateway: GatewayClient
public init(token: String, intents: Intents) async throws {
client = DiscordClient(token: token)
client = ApiClient(token: token)
let gatewayURL = try await client.getGatewayURL()
gateway = GatewayClient(gatewayURL: gatewayURL, token: token, intents: intents)
}