feat: sending messages works
This commit is contained in:
@@ -4,12 +4,12 @@ import FoundationNetworking
|
||||
#endif
|
||||
|
||||
public actor Bot {
|
||||
let client: ApiClient
|
||||
public let client: DiscordClient
|
||||
let gateway: GatewayClient
|
||||
let intents: Intents
|
||||
|
||||
public init(token: String, intents: Intents) async throws {
|
||||
client = ApiClient(token: token)
|
||||
client = DiscordClient(token: token)
|
||||
self.intents = intents
|
||||
let gatewayURL = try await client.getGatewayURL()
|
||||
gateway = GatewayClient(gatewayURL: gatewayURL, token: token)
|
||||
|
||||
Reference in New Issue
Block a user