The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftDisc, reference 2.4.1 (d12c9d), with Swift 6.3 for Wasm on 2 Nov 2026 11:00:22 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-3":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build 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.3
Building package at path:  $PWD
https://github.com/M1tsumi/SwiftDisc.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344846-3":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
820ea5ab8df9: Pulling fs layer
cb259a83ac3d: Pulling fs layer
e5ad342fd9c7: Pulling fs layer
c1d599776af8: Pulling fs layer
67058f643edd: Pulling fs layer
433887e4aeee: Pulling fs layer
43e7da682bc7: Pulling fs layer
675b06d6b733: Pulling fs layer
ad09a74bb078: Pulling fs layer
59eb21e6cfd5: Pulling fs layer
7a6a3b64a046: Pulling fs layer
59eb21e6cfd5: Download complete
cb259a83ac3d: Download complete
820ea5ab8df9: Download complete
e5ad342fd9c7: Download complete
67058f643edd: Download complete
43e7da682bc7: Download complete
675b06d6b733: Download complete
cb259a83ac3d: Pull complete
7a6a3b64a046: Download complete
69449fd80c5a: Download complete
e5ad342fd9c7: Pull complete
ad09a74bb078: Download complete
c1d599776af8: Download complete
433887e4aeee: Download complete
c1d599776af8: Pull complete
67058f643edd: Pull complete
820ea5ab8df9: Pull complete
43e7da682bc7: Pull complete
675b06d6b733: Pull complete
433887e4aeee: Pull complete
ad09a74bb078: Pull complete
59eb21e6cfd5: Pull complete
7a6a3b64a046: Pull complete
Digest: sha256:eea66feda95ad8894091082dbcb77ec1fc917891d37888fd1938b0b68455d992
Status: Downloaded newer image for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-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 '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 '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 '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 'AnyObject'; this is an error in the Swift 6 language mode
 68 |     private let closeCodeBox = LockedBox<Int?>(nil)
 69 |
[15/121] Compiling SwiftDisc PartialGuild.swift
[16/121] Compiling SwiftDisc PermissionBitset.swift
[17/121] Compiling SwiftDisc Role.swift
[18/121] Compiling SwiftDisc RoleMemberCount.swift
[19/121] Compiling SwiftDisc ScheduledEvent.swift
[20/121] Compiling SwiftDisc ScheduledEventUser.swift
[21/121] Compiling SwiftDisc Snowflake.swift
[22/121] Compiling SwiftDisc StageInstance.swift
[23/121] Compiling SwiftDisc Sticker.swift
[24/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 '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 '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 '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 '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 |
[25/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 '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 '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 '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 '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 |
[26/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 '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 '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 '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 '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 |
[27/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 '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 '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 '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 '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 |
[28/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 '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 '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 '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 '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 |
[29/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 '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 '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 '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 '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 |
[30/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 '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 '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 '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 '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 |
[31/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 '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 '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 '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 '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 |
[32/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 '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 '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 '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 '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 |
[33/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) {
[34/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) {
[35/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) {
[36/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) {
[37/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) {
[38/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) {
[39/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) {
[40/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) {
[41/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) {
[42/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) {
[43/121] Compiling SwiftDisc Attachment.swift
[44/121] Compiling SwiftDisc AuditLog.swift
[45/121] Compiling SwiftDisc AutoModeration.swift
[46/121] Compiling SwiftDisc Channel.swift
[47/121] Compiling SwiftDisc Embed.swift
[48/121] Compiling SwiftDisc Emoji.swift
[49/121] Compiling SwiftDisc Files.swift
[50/121] Compiling SwiftDisc Guild.swift
[51/121] Compiling SwiftDisc GuildBan.swift
[52/121] Compiling SwiftDisc ComponentCollector.swift
[53/121] Compiling SwiftDisc ComponentsBuilder.swift
[54/121] Compiling SwiftDisc Converters.swift
[55/121] Compiling SwiftDisc CooldownManager.swift
[56/121] Compiling SwiftDisc EmbedBuilder.swift
[57/121] Compiling SwiftDisc Extensions.swift
[58/121] Compiling SwiftDisc MessagePayload.swift
[59/121] Compiling SwiftDisc MessageValidation.swift
[60/121] Compiling SwiftDisc Permissions.swift
[61/121] Compiling SwiftDisc ShardingGatewayManager.swift
[62/121] 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)
[63/121] 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)
[64/121] 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)
[65/121] 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)
[66/121] 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)
[67/121] 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)
[68/121] 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)
[69/121] 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)
[70/121] 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)
[71/121] 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)
[72/121] Compiling SwiftDisc EventDispatcher.swift
[73/121] Compiling SwiftDisc JSONCoders.swift
[74/121] Compiling SwiftDisc JSONValue.swift
[75/121] Compiling SwiftDisc OptionalField.swift
[76/121] Compiling SwiftDisc ProxyConfiguration.swift
[77/121] Compiling SwiftDisc RetryPolicy.swift
[78/121] Compiling SwiftDisc TokenStorage.swift
[79/121] Compiling SwiftDisc AdvancedMessagePayloads.swift
[80/121] Compiling SwiftDisc AppInstallations.swift
[81/121] Compiling SwiftDisc ApplicationRoleConnection.swift
[82/121] Compiling SwiftDisc GuildMember.swift
[83/121] Compiling SwiftDisc GuildPreview.swift
[84/121] Compiling SwiftDisc GuildWidgetSettings.swift
[85/121] Compiling SwiftDisc Interaction.swift
[86/121] Compiling SwiftDisc Invite.swift
[87/121] Compiling SwiftDisc Message.swift
[88/121] Compiling SwiftDisc MessageComponents.swift
[89/121] Compiling SwiftDisc Monetization.swift
[90/121] Compiling SwiftDisc Onboarding.swift
BUILD FAILURE 6.3 wasm