Build Information
Failed to build SwiftDisc, reference 2.4.1 (d12c9d), with Swift 6.2 for Wasm on 2 Nov 2026 10:59:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/M1tsumi/SwiftDisc.git
Reference: 2.4.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/M1tsumi/SwiftDisc
* tag 2.4.1 -> FETCH_HEAD
HEAD is now at d12c9d2 Fix compiler warnings, update CHANGELOG, polish examples
Cloned https://github.com/M1tsumi/SwiftDisc.git
Revision (git rev-parse @):
d12c9d26b0a6e7f3aa8ec17fc91049f6148d60d5
SUCCESS checkout https://github.com/M1tsumi/SwiftDisc.git at 2.4.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/M1tsumi/SwiftDisc.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
4b3ffd8ccb52: Pulling fs layer
6c7ab5c10a00: Pulling fs layer
94d8ca49b407: Pulling fs layer
998b7d86b811: Pulling fs layer
aabaacd4bf0b: Pulling fs layer
5eb98c8ed25f: Pulling fs layer
f95dea335c7a: Pulling fs layer
aff67659ce43: Pulling fs layer
3fd40f1e8d84: Pulling fs layer
1e0491b4d3cc: Pulling fs layer
c0ee3a3c98c6: Pulling fs layer
6c7ab5c10a00: Download complete
4b3ffd8ccb52: Download complete
4b3ffd8ccb52: Pull complete
94d8ca49b407: Download complete
5eb98c8ed25f: Download complete
998b7d86b811: Download complete
1e0491b4d3cc: Download complete
3fd40f1e8d84: Download complete
aabaacd4bf0b: Download complete
7eb94b3040a5: Download complete
aabaacd4bf0b: Pull complete
aff67659ce43: Download complete
f95dea335c7a: Download complete
c0ee3a3c98c6: Download complete
c0ee3a3c98c6: Pull complete
998b7d86b811: Pull complete
94d8ca49b407: Pull complete
5eb98c8ed25f: Pull complete
3fd40f1e8d84: Pull complete
f95dea335c7a: Pull complete
aff67659ce43: Pull complete
1e0491b4d3cc: Pull complete
6c7ab5c10a00: Pull complete
Digest: sha256:c2cc4df169d3c45015ced899e997f329be5fc90bdbfce388bd8981e1ea44d639
Status: Downloaded newer image for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/44] Write sources
[12/44] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/112] Emitting module SwiftDisc
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:595:101: error: extra argument 'transport' in call
593 | public init(token: String, configuration: DiscordConfiguration = .init()) {
594 | self._token = RedactedToken(token)
595 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
596 | self.gateway = GatewayClient(token: token, configuration: configuration)
597 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:110:19: error: cannot find 'URLRequest' in scope
108 | )
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | req.httpMethod = "POST"
112 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:122:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 | }
121 |
122 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
123 | if let httpResponse = response as? HTTPURLResponse,
124 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:163:19: error: cannot find 'URLRequest' in scope
161 | let body = PatchBody(content: content, embeds: embeds, components: components)
162 |
163 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 | req.httpMethod = "PATCH"
165 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:175:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | if let httpResponse = response as? HTTPURLResponse,
177 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
[15/112] Compiling SwiftDisc DiscordClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:595:101: error: extra argument 'transport' in call
593 | public init(token: String, configuration: DiscordConfiguration = .init()) {
594 | self._token = RedactedToken(token)
595 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
596 | self.gateway = GatewayClient(token: token, configuration: configuration)
597 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3767:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3765 |
3766 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3767 | return try await http.postStickerMultipart(path: "/guilds/\(guildId)/stickers", name: name, description: description, tags: tags, file: file, reason: reason)
| `- error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3768 | }
3769 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:590:23: error: cannot find 'URLRequest' in scope
588 | .appendingPathComponent("v\(configuration.apiVersion)")
589 | .appendingPathComponent("gateway/bot")
590 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
591 | request.setValue(token.authorizationHeaderValue, forHTTPHeaderField: "Authorization")
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:594:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
593 |
594 | let sessionConfig = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
595 | if let proxy = configuration.proxy {
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:598:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
597 | }
598 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
599 | defer { session.finishTasksAndInvalidate() }
600 | let (data, response) = try await session.data(for: request)
[16/112] Compiling SwiftDisc GatewayClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:595:101: error: extra argument 'transport' in call
593 | public init(token: String, configuration: DiscordConfiguration = .init()) {
594 | self._token = RedactedToken(token)
595 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
596 | self.gateway = GatewayClient(token: token, configuration: configuration)
597 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3767:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3765 |
3766 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3767 | return try await http.postStickerMultipart(path: "/guilds/\(guildId)/stickers", name: name, description: description, tags: tags, file: file, reason: reason)
| `- error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3768 | }
3769 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:590:23: error: cannot find 'URLRequest' in scope
588 | .appendingPathComponent("v\(configuration.apiVersion)")
589 | .appendingPathComponent("gateway/bot")
590 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
591 | request.setValue(token.authorizationHeaderValue, forHTTPHeaderField: "Authorization")
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:594:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
593 |
594 | let sessionConfig = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
595 | if let proxy = configuration.proxy {
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:598:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
597 | }
598 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
599 | defer { session.finishTasksAndInvalidate() }
600 | let (data, response) = try await session.data(for: request)
[17/112] Compiling SwiftDisc GatewayModels.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:595:101: error: extra argument 'transport' in call
593 | public init(token: String, configuration: DiscordConfiguration = .init()) {
594 | self._token = RedactedToken(token)
595 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
596 | self.gateway = GatewayClient(token: token, configuration: configuration)
597 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3767:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3765 |
3766 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3767 | return try await http.postStickerMultipart(path: "/guilds/\(guildId)/stickers", name: name, description: description, tags: tags, file: file, reason: reason)
| `- error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3768 | }
3769 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:590:23: error: cannot find 'URLRequest' in scope
588 | .appendingPathComponent("v\(configuration.apiVersion)")
589 | .appendingPathComponent("gateway/bot")
590 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
591 | request.setValue(token.authorizationHeaderValue, forHTTPHeaderField: "Authorization")
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:594:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
593 |
594 | let sessionConfig = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
595 | if let proxy = configuration.proxy {
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:598:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
597 | }
598 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
599 | defer { session.finishTasksAndInvalidate() }
600 | let (data, response) = try await session.data(for: request)
[18/112] Compiling SwiftDisc Intents.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:595:101: error: extra argument 'transport' in call
593 | public init(token: String, configuration: DiscordConfiguration = .init()) {
594 | self._token = RedactedToken(token)
595 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
596 | self.gateway = GatewayClient(token: token, configuration: configuration)
597 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3767:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3765 |
3766 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3767 | return try await http.postStickerMultipart(path: "/guilds/\(guildId)/stickers", name: name, description: description, tags: tags, file: file, reason: reason)
| `- error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3768 | }
3769 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:590:23: error: cannot find 'URLRequest' in scope
588 | .appendingPathComponent("v\(configuration.apiVersion)")
589 | .appendingPathComponent("gateway/bot")
590 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
591 | request.setValue(token.authorizationHeaderValue, forHTTPHeaderField: "Authorization")
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:594:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
593 |
594 | let sessionConfig = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
595 | if let proxy = configuration.proxy {
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:598:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
597 | }
598 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
599 | defer { session.finishTasksAndInvalidate() }
600 | let (data, response) = try await session.data(for: request)
[19/112] Compiling SwiftDisc WebSocket.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:595:101: error: extra argument 'transport' in call
593 | public init(token: String, configuration: DiscordConfiguration = .init()) {
594 | self._token = RedactedToken(token)
595 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
596 | self.gateway = GatewayClient(token: token, configuration: configuration)
597 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3767:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3765 |
3766 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3767 | return try await http.postStickerMultipart(path: "/guilds/\(guildId)/stickers", name: name, description: description, tags: tags, file: file, reason: reason)
| `- error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3768 | }
3769 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:590:23: error: cannot find 'URLRequest' in scope
588 | .appendingPathComponent("v\(configuration.apiVersion)")
589 | .appendingPathComponent("gateway/bot")
590 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
591 | request.setValue(token.authorizationHeaderValue, forHTTPHeaderField: "Authorization")
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:594:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
593 |
594 | let sessionConfig = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
595 | if let proxy = configuration.proxy {
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:598:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
597 | }
598 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
599 | defer { session.finishTasksAndInvalidate() }
600 | let (data, response) = try await session.data(for: request)
[20/112] Compiling SwiftDisc HTTPTransport.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:595:101: error: extra argument 'transport' in call
593 | public init(token: String, configuration: DiscordConfiguration = .init()) {
594 | self._token = RedactedToken(token)
595 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
596 | self.gateway = GatewayClient(token: token, configuration: configuration)
597 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3767:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3765 |
3766 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3767 | return try await http.postStickerMultipart(path: "/guilds/\(guildId)/stickers", name: name, description: description, tags: tags, file: file, reason: reason)
| `- error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3768 | }
3769 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:590:23: error: cannot find 'URLRequest' in scope
588 | .appendingPathComponent("v\(configuration.apiVersion)")
589 | .appendingPathComponent("gateway/bot")
590 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
591 | request.setValue(token.authorizationHeaderValue, forHTTPHeaderField: "Authorization")
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:594:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
593 |
594 | let sessionConfig = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
595 | if let proxy = configuration.proxy {
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:598:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
597 | }
598 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
599 | defer { session.finishTasksAndInvalidate() }
600 | let (data, response) = try await session.data(for: request)
[21/112] Compiling SwiftDisc ActivityBuilder.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:595:101: error: extra argument 'transport' in call
593 | public init(token: String, configuration: DiscordConfiguration = .init()) {
594 | self._token = RedactedToken(token)
595 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
596 | self.gateway = GatewayClient(token: token, configuration: configuration)
597 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3767:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3765 |
3766 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3767 | return try await http.postStickerMultipart(path: "/guilds/\(guildId)/stickers", name: name, description: description, tags: tags, file: file, reason: reason)
| `- error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3768 | }
3769 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:590:23: error: cannot find 'URLRequest' in scope
588 | .appendingPathComponent("v\(configuration.apiVersion)")
589 | .appendingPathComponent("gateway/bot")
590 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
591 | request.setValue(token.authorizationHeaderValue, forHTTPHeaderField: "Authorization")
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:594:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
593 |
594 | let sessionConfig = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
595 | if let proxy = configuration.proxy {
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:598:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
597 | }
598 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
599 | defer { session.finishTasksAndInvalidate() }
600 | let (data, response) = try await session.data(for: request)
[22/112] Compiling SwiftDisc AutocompleteRouter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:595:101: error: extra argument 'transport' in call
593 | public init(token: String, configuration: DiscordConfiguration = .init()) {
594 | self._token = RedactedToken(token)
595 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
596 | self.gateway = GatewayClient(token: token, configuration: configuration)
597 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3767:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3765 |
3766 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3767 | return try await http.postStickerMultipart(path: "/guilds/\(guildId)/stickers", name: name, description: description, tags: tags, file: file, reason: reason)
| `- error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3768 | }
3769 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:590:23: error: cannot find 'URLRequest' in scope
588 | .appendingPathComponent("v\(configuration.apiVersion)")
589 | .appendingPathComponent("gateway/bot")
590 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
591 | request.setValue(token.authorizationHeaderValue, forHTTPHeaderField: "Authorization")
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:594:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
593 |
594 | let sessionConfig = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
595 | if let proxy = configuration.proxy {
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:598:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
597 | }
598 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
599 | defer { session.finishTasksAndInvalidate() }
600 | let (data, response) = try await session.data(for: request)
[23/112] Compiling SwiftDisc Collectors.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:595:101: error: extra argument 'transport' in call
593 | public init(token: String, configuration: DiscordConfiguration = .init()) {
594 | self._token = RedactedToken(token)
595 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
596 | self.gateway = GatewayClient(token: token, configuration: configuration)
597 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3767:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3765 |
3766 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3767 | return try await http.postStickerMultipart(path: "/guilds/\(guildId)/stickers", name: name, description: description, tags: tags, file: file, reason: reason)
| `- error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3768 | }
3769 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:590:23: error: cannot find 'URLRequest' in scope
588 | .appendingPathComponent("v\(configuration.apiVersion)")
589 | .appendingPathComponent("gateway/bot")
590 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
591 | request.setValue(token.authorizationHeaderValue, forHTTPHeaderField: "Authorization")
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:594:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
593 |
594 | let sessionConfig = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
595 | if let proxy = configuration.proxy {
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:598:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
597 | }
598 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
599 | defer { session.finishTasksAndInvalidate() }
600 | let (data, response) = try await session.data(for: request)
[24/112] Compiling SwiftDisc CommandRouter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:595:101: error: extra argument 'transport' in call
593 | public init(token: String, configuration: DiscordConfiguration = .init()) {
594 | self._token = RedactedToken(token)
595 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
596 | self.gateway = GatewayClient(token: token, configuration: configuration)
597 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3767:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3765 |
3766 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3767 | return try await http.postStickerMultipart(path: "/guilds/\(guildId)/stickers", name: name, description: description, tags: tags, file: file, reason: reason)
| `- error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3768 | }
3769 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:590:23: error: cannot find 'URLRequest' in scope
588 | .appendingPathComponent("v\(configuration.apiVersion)")
589 | .appendingPathComponent("gateway/bot")
590 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
591 | request.setValue(token.authorizationHeaderValue, forHTTPHeaderField: "Authorization")
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:594:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
592 | request.setValue("DiscordBot (https://github.com/M1tsumi/SwiftDisc, \(DiscordConfiguration.version))", forHTTPHeaderField: "User-Agent")
593 |
594 | let sessionConfig = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
595 | if let proxy = configuration.proxy {
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:598:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
596 | sessionConfig.connectionProxyDictionary = proxy.urlSessionProxyDictionary
597 | }
598 | let session = URLSession(configuration: sessionConfig)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
599 | defer { session.finishTasksAndInvalidate() }
600 | let (data, response) = try await session.data(for: request)
[25/121] Compiling SwiftDisc Attachment.swift
[26/121] Compiling SwiftDisc AuditLog.swift
[27/121] Compiling SwiftDisc AutoModeration.swift
[28/121] Compiling SwiftDisc Channel.swift
[29/121] Compiling SwiftDisc Embed.swift
[30/121] Compiling SwiftDisc Emoji.swift
[31/121] Compiling SwiftDisc Files.swift
[32/121] Compiling SwiftDisc Guild.swift
[33/121] Compiling SwiftDisc GuildBan.swift
[34/121] Compiling SwiftDisc PartialGuild.swift
[35/121] Compiling SwiftDisc PermissionBitset.swift
[36/121] Compiling SwiftDisc Role.swift
[37/121] Compiling SwiftDisc RoleMemberCount.swift
[38/121] Compiling SwiftDisc ScheduledEvent.swift
[39/121] Compiling SwiftDisc ScheduledEventUser.swift
[40/121] Compiling SwiftDisc Snowflake.swift
[41/121] Compiling SwiftDisc StageInstance.swift
[42/121] Compiling SwiftDisc Sticker.swift
[43/121] Compiling SwiftDisc SlashCommandBuilder.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:110:19: error: cannot find 'URLRequest' in scope
108 | )
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | req.httpMethod = "POST"
112 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:122:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 | }
121 |
122 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
123 | if let httpResponse = response as? HTTPURLResponse,
124 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:163:19: error: cannot find 'URLRequest' in scope
161 | let body = PatchBody(content: content, embeds: embeds, components: components)
162 |
163 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 | req.httpMethod = "PATCH"
165 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:175:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | if let httpResponse = response as? HTTPURLResponse,
177 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:196:19: error: cannot find 'URLRequest' in scope
194 | throw WebhookError.invalidURL(urlStr)
195 | }
196 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:198:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | var req = URLRequest(url: url)
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | if let httpResponse = response as? HTTPURLResponse,
200 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:219:19: error: cannot find 'URLRequest' in scope
217 | throw WebhookError.invalidURL(urlStr)
218 | }
219 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:221:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | var req = URLRequest(url: url)
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | if let httpResponse = response as? HTTPURLResponse,
223 | !(200..<300).contains(httpResponse.statusCode) {
[44/121] Compiling SwiftDisc SlashCommandRouter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:110:19: error: cannot find 'URLRequest' in scope
108 | )
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | req.httpMethod = "POST"
112 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:122:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 | }
121 |
122 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
123 | if let httpResponse = response as? HTTPURLResponse,
124 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:163:19: error: cannot find 'URLRequest' in scope
161 | let body = PatchBody(content: content, embeds: embeds, components: components)
162 |
163 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 | req.httpMethod = "PATCH"
165 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:175:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | if let httpResponse = response as? HTTPURLResponse,
177 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:196:19: error: cannot find 'URLRequest' in scope
194 | throw WebhookError.invalidURL(urlStr)
195 | }
196 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:198:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | var req = URLRequest(url: url)
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | if let httpResponse = response as? HTTPURLResponse,
200 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:219:19: error: cannot find 'URLRequest' in scope
217 | throw WebhookError.invalidURL(urlStr)
218 | }
219 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:221:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | var req = URLRequest(url: url)
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | if let httpResponse = response as? HTTPURLResponse,
223 | !(200..<300).contains(httpResponse.statusCode) {
[45/121] Compiling SwiftDisc Utilities.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:110:19: error: cannot find 'URLRequest' in scope
108 | )
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | req.httpMethod = "POST"
112 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:122:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 | }
121 |
122 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
123 | if let httpResponse = response as? HTTPURLResponse,
124 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:163:19: error: cannot find 'URLRequest' in scope
161 | let body = PatchBody(content: content, embeds: embeds, components: components)
162 |
163 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 | req.httpMethod = "PATCH"
165 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:175:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | if let httpResponse = response as? HTTPURLResponse,
177 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:196:19: error: cannot find 'URLRequest' in scope
194 | throw WebhookError.invalidURL(urlStr)
195 | }
196 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:198:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | var req = URLRequest(url: url)
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | if let httpResponse = response as? HTTPURLResponse,
200 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:219:19: error: cannot find 'URLRequest' in scope
217 | throw WebhookError.invalidURL(urlStr)
218 | }
219 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:221:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | var req = URLRequest(url: url)
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | if let httpResponse = response as? HTTPURLResponse,
223 | !(200..<300).contains(httpResponse.statusCode) {
[46/121] Compiling SwiftDisc ViewManager.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:110:19: error: cannot find 'URLRequest' in scope
108 | )
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | req.httpMethod = "POST"
112 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:122:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 | }
121 |
122 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
123 | if let httpResponse = response as? HTTPURLResponse,
124 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:163:19: error: cannot find 'URLRequest' in scope
161 | let body = PatchBody(content: content, embeds: embeds, components: components)
162 |
163 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 | req.httpMethod = "PATCH"
165 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:175:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | if let httpResponse = response as? HTTPURLResponse,
177 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:196:19: error: cannot find 'URLRequest' in scope
194 | throw WebhookError.invalidURL(urlStr)
195 | }
196 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:198:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | var req = URLRequest(url: url)
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | if let httpResponse = response as? HTTPURLResponse,
200 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:219:19: error: cannot find 'URLRequest' in scope
217 | throw WebhookError.invalidURL(urlStr)
218 | }
219 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:221:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | var req = URLRequest(url: url)
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | if let httpResponse = response as? HTTPURLResponse,
223 | !(200..<300).contains(httpResponse.statusCode) {
[47/121] Compiling SwiftDisc WebhookClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:110:19: error: cannot find 'URLRequest' in scope
108 | )
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | req.httpMethod = "POST"
112 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:122:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 | }
121 |
122 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
123 | if let httpResponse = response as? HTTPURLResponse,
124 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:163:19: error: cannot find 'URLRequest' in scope
161 | let body = PatchBody(content: content, embeds: embeds, components: components)
162 |
163 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 | req.httpMethod = "PATCH"
165 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:175:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | if let httpResponse = response as? HTTPURLResponse,
177 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:196:19: error: cannot find 'URLRequest' in scope
194 | throw WebhookError.invalidURL(urlStr)
195 | }
196 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:198:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | var req = URLRequest(url: url)
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | if let httpResponse = response as? HTTPURLResponse,
200 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:219:19: error: cannot find 'URLRequest' in scope
217 | throw WebhookError.invalidURL(urlStr)
218 | }
219 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:221:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | var req = URLRequest(url: url)
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | if let httpResponse = response as? HTTPURLResponse,
223 | !(200..<300).contains(httpResponse.statusCode) {
[48/121] Compiling SwiftDisc Cache.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:110:19: error: cannot find 'URLRequest' in scope
108 | )
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | req.httpMethod = "POST"
112 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:122:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 | }
121 |
122 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
123 | if let httpResponse = response as? HTTPURLResponse,
124 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:163:19: error: cannot find 'URLRequest' in scope
161 | let body = PatchBody(content: content, embeds: embeds, components: components)
162 |
163 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 | req.httpMethod = "PATCH"
165 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:175:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | if let httpResponse = response as? HTTPURLResponse,
177 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:196:19: error: cannot find 'URLRequest' in scope
194 | throw WebhookError.invalidURL(urlStr)
195 | }
196 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:198:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | var req = URLRequest(url: url)
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | if let httpResponse = response as? HTTPURLResponse,
200 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:219:19: error: cannot find 'URLRequest' in scope
217 | throw WebhookError.invalidURL(urlStr)
218 | }
219 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:221:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | var req = URLRequest(url: url)
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | if let httpResponse = response as? HTTPURLResponse,
223 | !(200..<300).contains(httpResponse.statusCode) {
[49/121] Compiling SwiftDisc DiscordAPIErrorBody.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:110:19: error: cannot find 'URLRequest' in scope
108 | )
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | req.httpMethod = "POST"
112 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:122:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 | }
121 |
122 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
123 | if let httpResponse = response as? HTTPURLResponse,
124 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:163:19: error: cannot find 'URLRequest' in scope
161 | let body = PatchBody(content: content, embeds: embeds, components: components)
162 |
163 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 | req.httpMethod = "PATCH"
165 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:175:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | if let httpResponse = response as? HTTPURLResponse,
177 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:196:19: error: cannot find 'URLRequest' in scope
194 | throw WebhookError.invalidURL(urlStr)
195 | }
196 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:198:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | var req = URLRequest(url: url)
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | if let httpResponse = response as? HTTPURLResponse,
200 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:219:19: error: cannot find 'URLRequest' in scope
217 | throw WebhookError.invalidURL(urlStr)
218 | }
219 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:221:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | var req = URLRequest(url: url)
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | if let httpResponse = response as? HTTPURLResponse,
223 | !(200..<300).contains(httpResponse.statusCode) {
[50/121] Compiling SwiftDisc DiscordConfiguration.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:110:19: error: cannot find 'URLRequest' in scope
108 | )
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | req.httpMethod = "POST"
112 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:122:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 | }
121 |
122 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
123 | if let httpResponse = response as? HTTPURLResponse,
124 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:163:19: error: cannot find 'URLRequest' in scope
161 | let body = PatchBody(content: content, embeds: embeds, components: components)
162 |
163 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 | req.httpMethod = "PATCH"
165 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:175:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | if let httpResponse = response as? HTTPURLResponse,
177 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:196:19: error: cannot find 'URLRequest' in scope
194 | throw WebhookError.invalidURL(urlStr)
195 | }
196 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:198:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | var req = URLRequest(url: url)
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | if let httpResponse = response as? HTTPURLResponse,
200 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:219:19: error: cannot find 'URLRequest' in scope
217 | throw WebhookError.invalidURL(urlStr)
218 | }
219 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:221:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | var req = URLRequest(url: url)
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | if let httpResponse = response as? HTTPURLResponse,
223 | !(200..<300).contains(httpResponse.statusCode) {
[51/121] Compiling SwiftDisc DiscordError.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:110:19: error: cannot find 'URLRequest' in scope
108 | )
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | req.httpMethod = "POST"
112 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:122:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 | }
121 |
122 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
123 | if let httpResponse = response as? HTTPURLResponse,
124 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:163:19: error: cannot find 'URLRequest' in scope
161 | let body = PatchBody(content: content, embeds: embeds, components: components)
162 |
163 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 | req.httpMethod = "PATCH"
165 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:175:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | if let httpResponse = response as? HTTPURLResponse,
177 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:196:19: error: cannot find 'URLRequest' in scope
194 | throw WebhookError.invalidURL(urlStr)
195 | }
196 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:198:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | var req = URLRequest(url: url)
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | if let httpResponse = response as? HTTPURLResponse,
200 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:219:19: error: cannot find 'URLRequest' in scope
217 | throw WebhookError.invalidURL(urlStr)
218 | }
219 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:221:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | var req = URLRequest(url: url)
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | if let httpResponse = response as? HTTPURLResponse,
223 | !(200..<300).contains(httpResponse.statusCode) {
[52/121] Compiling SwiftDisc DiscordUtils.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:110:19: error: cannot find 'URLRequest' in scope
108 | )
109 |
110 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
111 | req.httpMethod = "POST"
112 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:122:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 | }
121 |
122 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
123 | if let httpResponse = response as? HTTPURLResponse,
124 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:163:19: error: cannot find 'URLRequest' in scope
161 | let body = PatchBody(content: content, embeds: embeds, components: components)
162 |
163 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
164 | req.httpMethod = "PATCH"
165 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:175:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | }
174 |
175 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 | if let httpResponse = response as? HTTPURLResponse,
177 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:196:19: error: cannot find 'URLRequest' in scope
194 | throw WebhookError.invalidURL(urlStr)
195 | }
196 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:198:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | var req = URLRequest(url: url)
197 | req.httpMethod = "DELETE"
198 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | if let httpResponse = response as? HTTPURLResponse,
200 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:219:19: error: cannot find 'URLRequest' in scope
217 | throw WebhookError.invalidURL(urlStr)
218 | }
219 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:221:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
219 | var req = URLRequest(url: url)
220 | req.httpMethod = "GET"
221 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
222 | if let httpResponse = response as? HTTPURLResponse,
223 | !(200..<300).contains(httpResponse.statusCode) {
[53/121] Compiling SwiftDisc Template.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[54/121] Compiling SwiftDisc Thread.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[55/121] Compiling SwiftDisc User.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[56/121] Compiling SwiftDisc VanityURL.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[57/121] Compiling SwiftDisc Webhook.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[58/121] Compiling SwiftDisc HTTPClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[59/121] Compiling SwiftDisc RateLimitEvent.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[60/121] Compiling SwiftDisc RateLimiter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[61/121] Compiling SwiftDisc URLSessionTransport.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[62/121] Compiling SwiftDisc ComponentCollector.swift
[63/121] Compiling SwiftDisc ComponentsBuilder.swift
[64/121] Compiling SwiftDisc Converters.swift
[65/121] Compiling SwiftDisc CooldownManager.swift
[66/121] Compiling SwiftDisc EmbedBuilder.swift
[67/121] Compiling SwiftDisc Extensions.swift
[68/121] Compiling SwiftDisc MessagePayload.swift
[69/121] Compiling SwiftDisc MessageValidation.swift
[70/121] Compiling SwiftDisc Permissions.swift
[71/121] Compiling SwiftDisc ShardingGatewayManager.swift
[72/121] Compiling SwiftDisc GuildMember.swift
[73/121] Compiling SwiftDisc GuildPreview.swift
[74/121] Compiling SwiftDisc GuildWidgetSettings.swift
[75/121] Compiling SwiftDisc Interaction.swift
[76/121] Compiling SwiftDisc Invite.swift
[77/121] Compiling SwiftDisc Message.swift
[78/121] Compiling SwiftDisc MessageComponents.swift
[79/121] Compiling SwiftDisc Monetization.swift
[80/121] Compiling SwiftDisc Onboarding.swift
[81/121] Compiling SwiftDisc EventDispatcher.swift
[82/121] Compiling SwiftDisc JSONCoders.swift
[83/121] Compiling SwiftDisc JSONValue.swift
[84/121] Compiling SwiftDisc OptionalField.swift
[85/121] Compiling SwiftDisc ProxyConfiguration.swift
[86/121] Compiling SwiftDisc RetryPolicy.swift
[87/121] Compiling SwiftDisc TokenStorage.swift
[88/121] Compiling SwiftDisc AdvancedMessagePayloads.swift
[89/121] Compiling SwiftDisc AppInstallations.swift
[90/121] Compiling SwiftDisc ApplicationRoleConnection.swift
BUILD FAILURE 6.2 wasm