Build Information
Failed to build SwiftDisc, reference main (d85827), with Swift 6.2 for Wasm on 4 Jul 2026 19:25:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
[14/115] Emitting module SwiftDisc
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:637:101: error: extra argument 'transport' in call
635 | public init(token: String, configuration: DiscordConfiguration = .init()) {
636 | self._token = RedactedToken(token)
637 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
638 | self.gateway = GatewayClient(token: token, configuration: configuration)
639 | 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/Models/Message.swift:652:5: warning: 'public' modifier is redundant for instance method declared in a public extension
650 | /// ```
651 | @discardableResult
652 | public func reply(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
653 | client: DiscordClient,
654 | content: String? = nil,
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
[15/124] Compiling SwiftDisc Template.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[16/124] Compiling SwiftDisc Thread.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[17/124] Compiling SwiftDisc User.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[18/124] Compiling SwiftDisc VanityURL.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[19/124] Compiling SwiftDisc Webhook.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[20/124] Compiling SwiftDisc HTTPClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[21/124] Compiling SwiftDisc RateLimitEvent.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[22/124] Compiling SwiftDisc RateLimiter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[23/124] Compiling SwiftDisc URLSessionTransport.swift
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:11:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
9 | /// It supports proxy configuration and maintains the existing behavior.
10 | final class URLSessionHTTPTransport: HTTPTransport {
11 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:66:23: error: cannot find type 'URLSessionWebSocketTask' in scope
64 | /// for WebSocket connections. It supports proxy configuration and maintains the existing behavior.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
67 | let session: URLSession
68 | private let closeCodeBox = LockedBox<Int?>(nil)
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:67:9: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
65 | final class URLSessionWebSocketTransport: WebSocketTransport {
66 | private let task: URLSessionWebSocketTask
67 | let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionWebSocketTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
68 | private let closeCodeBox = LockedBox<Int?>(nil)
69 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:14:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 |
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
16 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:15:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
13 | init(proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
14 | let config = URLSessionConfiguration.ephemeral
15 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
16 | config.timeoutIntervalForRequest = 30
17 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:31:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
30 | }
31 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | }
33 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:35:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
33 |
34 | deinit {
35 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:39:23: error: cannot find 'URLRequest' in scope
37 |
38 | func request(method: String, url: URL, body: Data?, headers: [String: String]?) async throws -> HTTPResponse {
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = method
41 | request.httpBody = body
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:50:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | }
49 |
50 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | guard let httpResponse = response as? HTTPURLResponse else {
52 | throw DiscordError.network(NSError(domain: "InvalidResponse", code: -1))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:73:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
71 |
72 | deinit {
73 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
74 | }
75 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:77:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
75 |
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
79 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:78:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
76 | init(url: URL, proxy: ProxyConfiguration? = nil, maxConnectionsPerHost: Int = 8) {
77 | let config = URLSessionConfiguration.ephemeral
78 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
79 | config.timeoutIntervalForRequest = 30
80 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:85:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | config.connectionProxyDictionary = proxy.urlSessionProxyDictionary
84 | }
85 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | self.task = session.webSocketTask(with: url)
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:86:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
84 | }
85 | self.session = URLSession(configuration: config)
86 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
87 | self.task.maximumMessageSize = 16 * 1024 * 1024
88 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:94:34: error: cannot infer contextual base in reference to member 'string'
92 | switch message {
93 | case .string(let text):
94 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
95 | case .data(let data):
96 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:96:34: error: cannot infer contextual base in reference to member 'data'
94 | try await task.send(.string(text))
95 | case .data(let data):
96 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
97 | }
98 | }
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:28: error: cannot infer contextual base in reference to member 'normalClosure'
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:113:51: error: 'nil' requires a contextual type
111 |
112 | func close() async {
113 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:115:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
113 | task.cancel(with: .normalClosure, reason: nil)
114 | closeCodeBox.write(Int(task.closeCode.rawValue))
115 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
116 | }
117 |
/host/spi-builder-workspace/Sources/SwiftDisc/URLSessionTransport.swift:119:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
117 |
118 | func forceClose() async {
119 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
120 | }
121 |
[24/124] 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) {
[25/124] 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) {
[26/124] 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) {
[27/124] 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) {
[28/124] 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) {
[29/124] 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) {
[30/124] 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) {
[31/124] 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) {
[32/124] 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) {
[33/124] 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) {
[34/124] Compiling SwiftDisc DiscordClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:637:101: error: extra argument 'transport' in call
635 | public init(token: String, configuration: DiscordConfiguration = .init()) {
636 | self._token = RedactedToken(token)
637 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
638 | self.gateway = GatewayClient(token: token, configuration: configuration)
639 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3821:24: error: value of type 'HTTPClient' has no member 'putFile'
3819 | /// Replace the list of users allowed to accept a restricted invite.
3820 | public func updateInviteTargetUsers(code: String, csvData: Data) async throws {
3821 | try await http.putFile(path: "/invites/\(code)/target-users", data: csvData, filename: "target_users.csv")
| `- error: value of type 'HTTPClient' has no member 'putFile'
3822 | }
3823 |
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3885:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3883 |
3884 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3885 | 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'
3886 | }
3887 |
/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)
[35/124] Compiling SwiftDisc GatewayClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:637:101: error: extra argument 'transport' in call
635 | public init(token: String, configuration: DiscordConfiguration = .init()) {
636 | self._token = RedactedToken(token)
637 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
638 | self.gateway = GatewayClient(token: token, configuration: configuration)
639 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3821:24: error: value of type 'HTTPClient' has no member 'putFile'
3819 | /// Replace the list of users allowed to accept a restricted invite.
3820 | public func updateInviteTargetUsers(code: String, csvData: Data) async throws {
3821 | try await http.putFile(path: "/invites/\(code)/target-users", data: csvData, filename: "target_users.csv")
| `- error: value of type 'HTTPClient' has no member 'putFile'
3822 | }
3823 |
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3885:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3883 |
3884 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3885 | 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'
3886 | }
3887 |
/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)
[36/124] Compiling SwiftDisc GatewayModels.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:637:101: error: extra argument 'transport' in call
635 | public init(token: String, configuration: DiscordConfiguration = .init()) {
636 | self._token = RedactedToken(token)
637 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
638 | self.gateway = GatewayClient(token: token, configuration: configuration)
639 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3821:24: error: value of type 'HTTPClient' has no member 'putFile'
3819 | /// Replace the list of users allowed to accept a restricted invite.
3820 | public func updateInviteTargetUsers(code: String, csvData: Data) async throws {
3821 | try await http.putFile(path: "/invites/\(code)/target-users", data: csvData, filename: "target_users.csv")
| `- error: value of type 'HTTPClient' has no member 'putFile'
3822 | }
3823 |
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3885:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3883 |
3884 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3885 | 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'
3886 | }
3887 |
/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)
[37/124] Compiling SwiftDisc Intents.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:637:101: error: extra argument 'transport' in call
635 | public init(token: String, configuration: DiscordConfiguration = .init()) {
636 | self._token = RedactedToken(token)
637 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
638 | self.gateway = GatewayClient(token: token, configuration: configuration)
639 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3821:24: error: value of type 'HTTPClient' has no member 'putFile'
3819 | /// Replace the list of users allowed to accept a restricted invite.
3820 | public func updateInviteTargetUsers(code: String, csvData: Data) async throws {
3821 | try await http.putFile(path: "/invites/\(code)/target-users", data: csvData, filename: "target_users.csv")
| `- error: value of type 'HTTPClient' has no member 'putFile'
3822 | }
3823 |
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3885:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3883 |
3884 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3885 | 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'
3886 | }
3887 |
/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)
[38/124] Compiling SwiftDisc WebSocket.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:637:101: error: extra argument 'transport' in call
635 | public init(token: String, configuration: DiscordConfiguration = .init()) {
636 | self._token = RedactedToken(token)
637 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
638 | self.gateway = GatewayClient(token: token, configuration: configuration)
639 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3821:24: error: value of type 'HTTPClient' has no member 'putFile'
3819 | /// Replace the list of users allowed to accept a restricted invite.
3820 | public func updateInviteTargetUsers(code: String, csvData: Data) async throws {
3821 | try await http.putFile(path: "/invites/\(code)/target-users", data: csvData, filename: "target_users.csv")
| `- error: value of type 'HTTPClient' has no member 'putFile'
3822 | }
3823 |
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3885:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3883 |
3884 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3885 | 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'
3886 | }
3887 |
/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)
[39/124] Compiling SwiftDisc HTTPTransport.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:637:101: error: extra argument 'transport' in call
635 | public init(token: String, configuration: DiscordConfiguration = .init()) {
636 | self._token = RedactedToken(token)
637 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
638 | self.gateway = GatewayClient(token: token, configuration: configuration)
639 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3821:24: error: value of type 'HTTPClient' has no member 'putFile'
3819 | /// Replace the list of users allowed to accept a restricted invite.
3820 | public func updateInviteTargetUsers(code: String, csvData: Data) async throws {
3821 | try await http.putFile(path: "/invites/\(code)/target-users", data: csvData, filename: "target_users.csv")
| `- error: value of type 'HTTPClient' has no member 'putFile'
3822 | }
3823 |
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3885:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3883 |
3884 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3885 | 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'
3886 | }
3887 |
/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)
[40/124] Compiling SwiftDisc ActivityBuilder.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:637:101: error: extra argument 'transport' in call
635 | public init(token: String, configuration: DiscordConfiguration = .init()) {
636 | self._token = RedactedToken(token)
637 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
638 | self.gateway = GatewayClient(token: token, configuration: configuration)
639 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3821:24: error: value of type 'HTTPClient' has no member 'putFile'
3819 | /// Replace the list of users allowed to accept a restricted invite.
3820 | public func updateInviteTargetUsers(code: String, csvData: Data) async throws {
3821 | try await http.putFile(path: "/invites/\(code)/target-users", data: csvData, filename: "target_users.csv")
| `- error: value of type 'HTTPClient' has no member 'putFile'
3822 | }
3823 |
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3885:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3883 |
3884 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3885 | 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'
3886 | }
3887 |
/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)
[41/124] Compiling SwiftDisc AutocompleteRouter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:637:101: error: extra argument 'transport' in call
635 | public init(token: String, configuration: DiscordConfiguration = .init()) {
636 | self._token = RedactedToken(token)
637 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
638 | self.gateway = GatewayClient(token: token, configuration: configuration)
639 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3821:24: error: value of type 'HTTPClient' has no member 'putFile'
3819 | /// Replace the list of users allowed to accept a restricted invite.
3820 | public func updateInviteTargetUsers(code: String, csvData: Data) async throws {
3821 | try await http.putFile(path: "/invites/\(code)/target-users", data: csvData, filename: "target_users.csv")
| `- error: value of type 'HTTPClient' has no member 'putFile'
3822 | }
3823 |
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3885:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3883 |
3884 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3885 | 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'
3886 | }
3887 |
/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)
[42/124] Compiling SwiftDisc Collectors.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:637:101: error: extra argument 'transport' in call
635 | public init(token: String, configuration: DiscordConfiguration = .init()) {
636 | self._token = RedactedToken(token)
637 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
638 | self.gateway = GatewayClient(token: token, configuration: configuration)
639 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3821:24: error: value of type 'HTTPClient' has no member 'putFile'
3819 | /// Replace the list of users allowed to accept a restricted invite.
3820 | public func updateInviteTargetUsers(code: String, csvData: Data) async throws {
3821 | try await http.putFile(path: "/invites/\(code)/target-users", data: csvData, filename: "target_users.csv")
| `- error: value of type 'HTTPClient' has no member 'putFile'
3822 | }
3823 |
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3885:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3883 |
3884 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3885 | 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'
3886 | }
3887 |
/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)
[43/124] Compiling SwiftDisc CommandRouter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:637:101: error: extra argument 'transport' in call
635 | public init(token: String, configuration: DiscordConfiguration = .init()) {
636 | self._token = RedactedToken(token)
637 | self.http = HTTPClient(token: token, configuration: configuration, transport: configuration.httpTransport)
| `- error: extra argument 'transport' in call
638 | self.gateway = GatewayClient(token: token, configuration: configuration)
639 | self.configuration = configuration
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3821:24: error: value of type 'HTTPClient' has no member 'putFile'
3819 | /// Replace the list of users allowed to accept a restricted invite.
3820 | public func updateInviteTargetUsers(code: String, csvData: Data) async throws {
3821 | try await http.putFile(path: "/invites/\(code)/target-users", data: csvData, filename: "target_users.csv")
| `- error: value of type 'HTTPClient' has no member 'putFile'
3822 | }
3823 |
/host/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:3885:31: error: value of type 'HTTPClient' has no member 'postStickerMultipart'
3883 |
3884 | public func createGuildSticker(guildId: GuildID, name: String, description: String? = nil, tags: String, file: FileAttachment, reason: String? = nil) async throws -> Sticker {
3885 | 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'
3886 | }
3887 |
/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)
[44/124] Compiling SwiftDisc ApplicationRoleConnection.swift
[45/124] Compiling SwiftDisc Attachment.swift
[46/124] Compiling SwiftDisc AuditLog.swift
[47/124] Compiling SwiftDisc AutoModeration.swift
[48/124] Compiling SwiftDisc Channel.swift
[49/124] Compiling SwiftDisc Embed.swift
[50/124] Compiling SwiftDisc Emoji.swift
[51/124] Compiling SwiftDisc Files.swift
[52/124] Compiling SwiftDisc Guild.swift
[53/124] Compiling SwiftDisc GuildBan.swift
[54/124] Compiling SwiftDisc Onboarding.swift
[55/124] Compiling SwiftDisc PartialGuild.swift
[56/124] Compiling SwiftDisc PermissionBitset.swift
[57/124] Compiling SwiftDisc Role.swift
[58/124] Compiling SwiftDisc RoleMemberCount.swift
[59/124] Compiling SwiftDisc ScheduledEvent.swift
[60/124] Compiling SwiftDisc ScheduledEventUser.swift
[61/124] Compiling SwiftDisc Snowflake.swift
[62/124] Compiling SwiftDisc StageInstance.swift
[63/124] Compiling SwiftDisc Sticker.swift
[64/124] Compiling SwiftDisc GuildMember.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/Message.swift:652:5: warning: 'public' modifier is redundant for instance method declared in a public extension
650 | /// ```
651 | @discardableResult
652 | public func reply(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
653 | client: DiscordClient,
654 | content: String? = nil,
[65/124] Compiling SwiftDisc GuildPreview.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/Message.swift:652:5: warning: 'public' modifier is redundant for instance method declared in a public extension
650 | /// ```
651 | @discardableResult
652 | public func reply(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
653 | client: DiscordClient,
654 | content: String? = nil,
[66/124] Compiling SwiftDisc GuildWidgetSettings.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/Message.swift:652:5: warning: 'public' modifier is redundant for instance method declared in a public extension
650 | /// ```
651 | @discardableResult
652 | public func reply(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
653 | client: DiscordClient,
654 | content: String? = nil,
[67/124] Compiling SwiftDisc Interaction.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/Message.swift:652:5: warning: 'public' modifier is redundant for instance method declared in a public extension
650 | /// ```
651 | @discardableResult
652 | public func reply(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
653 | client: DiscordClient,
654 | content: String? = nil,
[68/124] Compiling SwiftDisc Invite.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/Message.swift:652:5: warning: 'public' modifier is redundant for instance method declared in a public extension
650 | /// ```
651 | @discardableResult
652 | public func reply(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
653 | client: DiscordClient,
654 | content: String? = nil,
[69/124] Compiling SwiftDisc MFALevel.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/Message.swift:652:5: warning: 'public' modifier is redundant for instance method declared in a public extension
650 | /// ```
651 | @discardableResult
652 | public func reply(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
653 | client: DiscordClient,
654 | content: String? = nil,
[70/124] Compiling SwiftDisc Message.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/Message.swift:652:5: warning: 'public' modifier is redundant for instance method declared in a public extension
650 | /// ```
651 | @discardableResult
652 | public func reply(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
653 | client: DiscordClient,
654 | content: String? = nil,
[71/124] Compiling SwiftDisc MessageComponents.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/Message.swift:652:5: warning: 'public' modifier is redundant for instance method declared in a public extension
650 | /// ```
651 | @discardableResult
652 | public func reply(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
653 | client: DiscordClient,
654 | content: String? = nil,
[72/124] Compiling SwiftDisc Monetization.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/Message.swift:652:5: warning: 'public' modifier is redundant for instance method declared in a public extension
650 | /// ```
651 | @discardableResult
652 | public func reply(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
653 | client: DiscordClient,
654 | content: String? = nil,
[73/124] Compiling SwiftDisc NewMemberWelcome.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/Message.swift:652:5: warning: 'public' modifier is redundant for instance method declared in a public extension
650 | /// ```
651 | @discardableResult
652 | public func reply(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
653 | client: DiscordClient,
654 | content: String? = nil,
[74/124] Compiling SwiftDisc ComponentCollector.swift
[75/124] Compiling SwiftDisc ComponentsBuilder.swift
[76/124] Compiling SwiftDisc Converters.swift
[77/124] Compiling SwiftDisc CooldownManager.swift
[78/124] Compiling SwiftDisc EmbedBuilder.swift
[79/124] Compiling SwiftDisc Extensions.swift
[80/124] Compiling SwiftDisc MessagePayload.swift
[81/124] Compiling SwiftDisc MessageValidation.swift
[82/124] Compiling SwiftDisc Permissions.swift
[83/124] Compiling SwiftDisc ShardingGatewayManager.swift
[84/124] Compiling SwiftDisc EventDispatcher.swift
[85/124] Compiling SwiftDisc JSONCoders.swift
[86/124] Compiling SwiftDisc JSONValue.swift
[87/124] Compiling SwiftDisc OptionalField.swift
[88/124] Compiling SwiftDisc ProxyConfiguration.swift
[89/124] Compiling SwiftDisc RetryPolicy.swift
[90/124] Compiling SwiftDisc TokenStorage.swift
[91/124] Compiling SwiftDisc AdvancedMessagePayloads.swift
[92/124] Compiling SwiftDisc AppInstallations.swift
[93/124] Compiling SwiftDisc Application.swift
BUILD FAILURE 6.2 wasm