Build Information
Failed to build SwiftDisc, reference v2.1.0 (81ee36), with Swift 6.3 for Wasm on 18 Apr 2026 00:29:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
[16/109] Compiling SwiftDisc VoiceGateway.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
[17/109] Compiling SwiftDisc VoiceModels.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
[18/109] Compiling SwiftDisc VoiceReceiver.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
[19/109] Compiling SwiftDisc VoiceSender.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:236:9: warning: variable 'r0' was never mutated; consider changing to 'let' constant
234 | let s = Array(key[16..<32])
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
| `- warning: variable 'r0' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:237:9: warning: variable 'r1' was never mutated; consider changing to 'let' constant
235 |
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
| `- warning: variable 'r1' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:238:9: warning: variable 'r2' was never mutated; consider changing to 'let' constant
236 | var r0 = UInt32(loadLE(r[0..<4])) & 0x3ffffff
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
| `- warning: variable 'r2' was never mutated; consider changing to 'let' constant
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:239:9: warning: variable 'r3' was never mutated; consider changing to 'let' constant
237 | var r1 = (UInt32(loadLE(r[3..<7])) >> 2) & 0x3ffff03
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
| `- warning: variable 'r3' was never mutated; consider changing to 'let' constant
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
241 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:240:9: warning: variable 'r4' was never mutated; consider changing to 'let' constant
238 | var r2 = (UInt32(loadLE(r[6..<10])) >> 4) & 0x3ffc0ff
239 | var r3 = (UInt32(loadLE(r[9..<13])) >> 6) & 0x3f03fff
240 | var r4 = (UInt32(loadLE(r[12..<16])) >> 8) & 0x00fffff
| `- warning: variable 'r4' was never mutated; consider changing to 'let' constant
241 |
242 | var h0: UInt32 = 0, h1: UInt32 = 0, h2: UInt32 = 0, h3: UInt32 = 0, h4: UInt32 = 0
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:303:9: warning: variable 'f0' was never mutated; consider changing to 'let' constant
301 |
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
| `- warning: variable 'f0' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:304:9: warning: variable 'f1' was never mutated; consider changing to 'let' constant
302 | // Serialize h
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
| `- warning: variable 'f1' was never mutated; consider changing to 'let' constant
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:305:9: warning: variable 'f2' was never mutated; consider changing to 'let' constant
303 | var f0 = (h0 | (h1 << 26)) & 0xffffffff
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
| `- warning: variable 'f2' was never mutated; consider changing to 'let' constant
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
307 |
/host/spi-builder-workspace/Sources/SwiftDisc/Voice/Secretbox.swift:306:9: warning: variable 'f3' was never mutated; consider changing to 'let' constant
304 | var f1 = ((h1 >> 6) | (h2 << 20)) & 0xffffffff
305 | var f2 = ((h2 >> 12) | (h3 << 14)) & 0xffffffff
306 | var f3 = ((h3 >> 18) | (h4 << 8)) & 0xffffffff
| `- warning: variable 'f3' was never mutated; consider changing to 'let' constant
307 |
308 | // Add s
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
[20/109] Compiling SwiftDisc Monetization.swift
[21/109] Compiling SwiftDisc Onboarding.swift
[22/109] Compiling SwiftDisc PartialGuild.swift
[23/109] Compiling SwiftDisc PermissionBitset.swift
[24/109] Compiling SwiftDisc Role.swift
[25/109] Compiling SwiftDisc RoleMemberCount.swift
[26/109] Compiling SwiftDisc ScheduledEvent.swift
[27/109] Compiling SwiftDisc ScheduledEventUser.swift
[28/109] Compiling SwiftDisc Snowflake.swift
[29/109] Compiling SwiftDisc ComponentsBuilder.swift
[30/109] Compiling SwiftDisc Converters.swift
[31/109] Compiling SwiftDisc CooldownManager.swift
[32/109] Compiling SwiftDisc EmbedBuilder.swift
[33/109] Compiling SwiftDisc Extensions.swift
[34/109] Compiling SwiftDisc MessagePayload.swift
[35/109] Compiling SwiftDisc MessageValidation.swift
[36/109] Compiling SwiftDisc Permissions.swift
[37/109] Compiling SwiftDisc ShardManager.swift
[38/109] Compiling SwiftDisc ShardingGatewayManager.swift
[39/109] Compiling SwiftDisc DiscordClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:235:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
233 | // MARK: - Request/Receive Guild Members
234 | public struct RequestGuildMembers: Codable, Hashable, Sendable {
235 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
236 | public let d: Payload
237 | public struct Payload: Codable, Hashable, Sendable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
21 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | deinit {
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/Gateway/WebSocket.swift:25:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
23 | deinit {
24 | // Ensure FoundationNetworking tears down socket resources deterministically.
25 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:29:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
27 |
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
31 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
31 | config.timeoutIntervalForRequest = 30
32 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | config.timeoutIntervalForResource = 60
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | self.task = session.webSocketTask(with: url)
36 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:35:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
35 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
36 | self.task.resume()
37 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:42:34: error: cannot infer contextual base in reference to member 'string'
40 | switch message {
41 | case .string(let text):
42 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
43 | case .data(let data):
44 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:44:34: error: cannot infer contextual base in reference to member 'data'
42 | try await task.send(.string(text))
43 | case .data(let data):
44 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
45 | }
46 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:28: error: cannot infer contextual base in reference to member 'normalClosure'
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:51: error: 'nil' requires a contextual type
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
62 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
63 | }
64 | }
[40/109] Compiling SwiftDisc GatewayClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:235:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
233 | // MARK: - Request/Receive Guild Members
234 | public struct RequestGuildMembers: Codable, Hashable, Sendable {
235 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
236 | public let d: Payload
237 | public struct Payload: Codable, Hashable, Sendable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
21 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | deinit {
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/Gateway/WebSocket.swift:25:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
23 | deinit {
24 | // Ensure FoundationNetworking tears down socket resources deterministically.
25 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:29:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
27 |
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
31 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
31 | config.timeoutIntervalForRequest = 30
32 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | config.timeoutIntervalForResource = 60
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | self.task = session.webSocketTask(with: url)
36 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:35:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
35 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
36 | self.task.resume()
37 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:42:34: error: cannot infer contextual base in reference to member 'string'
40 | switch message {
41 | case .string(let text):
42 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
43 | case .data(let data):
44 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:44:34: error: cannot infer contextual base in reference to member 'data'
42 | try await task.send(.string(text))
43 | case .data(let data):
44 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
45 | }
46 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:28: error: cannot infer contextual base in reference to member 'normalClosure'
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:51: error: 'nil' requires a contextual type
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
62 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
63 | }
64 | }
[41/109] Compiling SwiftDisc GatewayModels.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:235:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
233 | // MARK: - Request/Receive Guild Members
234 | public struct RequestGuildMembers: Codable, Hashable, Sendable {
235 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
236 | public let d: Payload
237 | public struct Payload: Codable, Hashable, Sendable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
21 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | deinit {
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/Gateway/WebSocket.swift:25:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
23 | deinit {
24 | // Ensure FoundationNetworking tears down socket resources deterministically.
25 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:29:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
27 |
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
31 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
31 | config.timeoutIntervalForRequest = 30
32 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | config.timeoutIntervalForResource = 60
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | self.task = session.webSocketTask(with: url)
36 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:35:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
35 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
36 | self.task.resume()
37 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:42:34: error: cannot infer contextual base in reference to member 'string'
40 | switch message {
41 | case .string(let text):
42 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
43 | case .data(let data):
44 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:44:34: error: cannot infer contextual base in reference to member 'data'
42 | try await task.send(.string(text))
43 | case .data(let data):
44 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
45 | }
46 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:28: error: cannot infer contextual base in reference to member 'normalClosure'
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:51: error: 'nil' requires a contextual type
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
62 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
63 | }
64 | }
[42/109] Compiling SwiftDisc Intents.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:235:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
233 | // MARK: - Request/Receive Guild Members
234 | public struct RequestGuildMembers: Codable, Hashable, Sendable {
235 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
236 | public let d: Payload
237 | public struct Payload: Codable, Hashable, Sendable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
21 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | deinit {
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/Gateway/WebSocket.swift:25:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
23 | deinit {
24 | // Ensure FoundationNetworking tears down socket resources deterministically.
25 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:29:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
27 |
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
31 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
31 | config.timeoutIntervalForRequest = 30
32 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | config.timeoutIntervalForResource = 60
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | self.task = session.webSocketTask(with: url)
36 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:35:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
35 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
36 | self.task.resume()
37 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:42:34: error: cannot infer contextual base in reference to member 'string'
40 | switch message {
41 | case .string(let text):
42 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
43 | case .data(let data):
44 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:44:34: error: cannot infer contextual base in reference to member 'data'
42 | try await task.send(.string(text))
43 | case .data(let data):
44 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
45 | }
46 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:28: error: cannot infer contextual base in reference to member 'normalClosure'
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:51: error: 'nil' requires a contextual type
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
62 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
63 | }
64 | }
[43/109] Compiling SwiftDisc WebSocket.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:235:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
233 | // MARK: - Request/Receive Guild Members
234 | public struct RequestGuildMembers: Codable, Hashable, Sendable {
235 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
236 | public let d: Payload
237 | public struct Payload: Codable, Hashable, Sendable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
21 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | deinit {
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/Gateway/WebSocket.swift:25:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
23 | deinit {
24 | // Ensure FoundationNetworking tears down socket resources deterministically.
25 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:29:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
27 |
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
31 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
31 | config.timeoutIntervalForRequest = 30
32 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | config.timeoutIntervalForResource = 60
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | self.task = session.webSocketTask(with: url)
36 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:35:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
35 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
36 | self.task.resume()
37 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:42:34: error: cannot infer contextual base in reference to member 'string'
40 | switch message {
41 | case .string(let text):
42 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
43 | case .data(let data):
44 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:44:34: error: cannot infer contextual base in reference to member 'data'
42 | try await task.send(.string(text))
43 | case .data(let data):
44 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
45 | }
46 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:28: error: cannot infer contextual base in reference to member 'normalClosure'
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:51: error: 'nil' requires a contextual type
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
62 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
63 | }
64 | }
[44/109] Compiling SwiftDisc ActivityBuilder.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:235:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
233 | // MARK: - Request/Receive Guild Members
234 | public struct RequestGuildMembers: Codable, Hashable, Sendable {
235 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
236 | public let d: Payload
237 | public struct Payload: Codable, Hashable, Sendable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
21 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | deinit {
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/Gateway/WebSocket.swift:25:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
23 | deinit {
24 | // Ensure FoundationNetworking tears down socket resources deterministically.
25 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:29:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
27 |
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
31 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
31 | config.timeoutIntervalForRequest = 30
32 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | config.timeoutIntervalForResource = 60
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | self.task = session.webSocketTask(with: url)
36 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:35:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
35 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
36 | self.task.resume()
37 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:42:34: error: cannot infer contextual base in reference to member 'string'
40 | switch message {
41 | case .string(let text):
42 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
43 | case .data(let data):
44 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:44:34: error: cannot infer contextual base in reference to member 'data'
42 | try await task.send(.string(text))
43 | case .data(let data):
44 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
45 | }
46 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:28: error: cannot infer contextual base in reference to member 'normalClosure'
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:51: error: 'nil' requires a contextual type
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
62 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
63 | }
64 | }
[45/109] Compiling SwiftDisc AutocompleteRouter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:235:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
233 | // MARK: - Request/Receive Guild Members
234 | public struct RequestGuildMembers: Codable, Hashable, Sendable {
235 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
236 | public let d: Payload
237 | public struct Payload: Codable, Hashable, Sendable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
21 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | deinit {
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/Gateway/WebSocket.swift:25:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
23 | deinit {
24 | // Ensure FoundationNetworking tears down socket resources deterministically.
25 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:29:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
27 |
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
31 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
31 | config.timeoutIntervalForRequest = 30
32 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | config.timeoutIntervalForResource = 60
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | self.task = session.webSocketTask(with: url)
36 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:35:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
35 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
36 | self.task.resume()
37 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:42:34: error: cannot infer contextual base in reference to member 'string'
40 | switch message {
41 | case .string(let text):
42 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
43 | case .data(let data):
44 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:44:34: error: cannot infer contextual base in reference to member 'data'
42 | try await task.send(.string(text))
43 | case .data(let data):
44 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
45 | }
46 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:28: error: cannot infer contextual base in reference to member 'normalClosure'
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:51: error: 'nil' requires a contextual type
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
62 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
63 | }
64 | }
[46/109] Compiling SwiftDisc Collectors.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:235:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
233 | // MARK: - Request/Receive Guild Members
234 | public struct RequestGuildMembers: Codable, Hashable, Sendable {
235 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
236 | public let d: Payload
237 | public struct Payload: Codable, Hashable, Sendable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
21 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | deinit {
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/Gateway/WebSocket.swift:25:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
23 | deinit {
24 | // Ensure FoundationNetworking tears down socket resources deterministically.
25 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:29:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
27 |
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
31 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
31 | config.timeoutIntervalForRequest = 30
32 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | config.timeoutIntervalForResource = 60
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | self.task = session.webSocketTask(with: url)
36 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:35:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
35 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
36 | self.task.resume()
37 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:42:34: error: cannot infer contextual base in reference to member 'string'
40 | switch message {
41 | case .string(let text):
42 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
43 | case .data(let data):
44 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:44:34: error: cannot infer contextual base in reference to member 'data'
42 | try await task.send(.string(text))
43 | case .data(let data):
44 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
45 | }
46 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:28: error: cannot infer contextual base in reference to member 'normalClosure'
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:51: error: 'nil' requires a contextual type
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
62 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
63 | }
64 | }
[47/109] Compiling SwiftDisc CommandRouter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:235:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
233 | // MARK: - Request/Receive Guild Members
234 | public struct RequestGuildMembers: Codable, Hashable, Sendable {
235 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
236 | public let d: Payload
237 | public struct Payload: Codable, Hashable, Sendable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
21 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | deinit {
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/Gateway/WebSocket.swift:25:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
23 | deinit {
24 | // Ensure FoundationNetworking tears down socket resources deterministically.
25 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:29:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
27 |
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
31 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
31 | config.timeoutIntervalForRequest = 30
32 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | config.timeoutIntervalForResource = 60
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | self.task = session.webSocketTask(with: url)
36 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:35:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
35 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
36 | self.task.resume()
37 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:42:34: error: cannot infer contextual base in reference to member 'string'
40 | switch message {
41 | case .string(let text):
42 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
43 | case .data(let data):
44 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:44:34: error: cannot infer contextual base in reference to member 'data'
42 | try await task.send(.string(text))
43 | case .data(let data):
44 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
45 | }
46 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:28: error: cannot infer contextual base in reference to member 'normalClosure'
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:51: error: 'nil' requires a contextual type
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
62 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
63 | }
64 | }
[48/109] Compiling SwiftDisc ComponentCollector.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:235:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
233 | // MARK: - Request/Receive Guild Members
234 | public struct RequestGuildMembers: Codable, Hashable, Sendable {
235 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
236 | public let d: Payload
237 | public struct Payload: Codable, Hashable, Sendable {
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:20:23: error: cannot find type 'URLSessionWebSocketTask' in scope
18 |
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
21 | private let session: URLSession
22 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:21:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | final class URLSessionWebSocketAdapter: WebSocketClient, @unchecked Sendable {
20 | private let task: URLSessionWebSocketTask
21 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | deinit {
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/Gateway/WebSocket.swift:25:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
23 | deinit {
24 | // Ensure FoundationNetworking tears down socket resources deterministically.
25 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
26 | }
27 |
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:29:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
27 |
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
31 | config.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:30:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
28 | init(url: URL) {
29 | let config = URLSessionConfiguration.ephemeral
30 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
31 | config.timeoutIntervalForRequest = 30
32 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:34:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | config.timeoutIntervalForResource = 60
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | self.task = session.webSocketTask(with: url)
36 | self.task.resume()
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:35:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
33 | config.httpMaximumConnectionsPerHost = 8
34 | self.session = URLSession(configuration: config)
35 | self.task = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
36 | self.task.resume()
37 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:42:34: error: cannot infer contextual base in reference to member 'string'
40 | switch message {
41 | case .string(let text):
42 | try await task.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
43 | case .data(let data):
44 | try await task.send(.data(data))
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:44:34: error: cannot infer contextual base in reference to member 'data'
42 | try await task.send(.string(text))
43 | case .data(let data):
44 | try await task.send(.data(data))
| `- error: cannot infer contextual base in reference to member 'data'
45 | }
46 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:28: error: cannot infer contextual base in reference to member 'normalClosure'
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:61:51: error: 'nil' requires a contextual type
59 |
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
62 | session.invalidateAndCancel()
63 | }
/host/spi-builder-workspace/Sources/SwiftDisc/Gateway/WebSocket.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
60 | func close() async {
61 | task.cancel(with: .normalClosure, reason: nil)
62 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
63 | }
64 | }
[49/109] Compiling SwiftDisc JSONValue.swift
[50/109] Compiling SwiftDisc AdvancedMessagePayloads.swift
[51/109] Compiling SwiftDisc AppInstallations.swift
[52/109] Compiling SwiftDisc ApplicationRoleConnection.swift
[53/109] Compiling SwiftDisc Attachment.swift
[54/109] Compiling SwiftDisc AuditLog.swift
[55/109] Compiling SwiftDisc AutoModeration.swift
[56/109] Compiling SwiftDisc Channel.swift
[57/109] Compiling SwiftDisc Embed.swift
[58/109] Compiling SwiftDisc Emoji.swift
[59/109] Compiling SwiftDisc Files.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
53 |
54 | public struct ActionRow: Codable, Hashable, Sendable {
55 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
56 | public let components: [MessageComponent]
57 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:61:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
59 |
60 | public struct Button: Codable, Hashable, Sendable {
61 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
62 | public let style: Int
63 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:88:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
86 | public let `default`: Bool?
87 | }
88 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
89 | public let custom_id: String
90 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:107:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
105 | public struct TextInput: Codable, Hashable, Sendable {
106 | public enum Style: Int, Codable, Sendable { case short = 1, paragraph = 2 }
107 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
108 | public let custom_id: String
109 | public let style: Style
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:133:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
131 | /// Provides a `label` and optional `description`, and wraps a single interactive component.
132 | public struct Label: Codable, Hashable, Sendable {
133 | public let type: Int = 21
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
134 | public let label: String
135 | public let description: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:147:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
145 | /// Radio Group component (type 22). Single-selection picker for modals; must be inside a Label.
146 | public struct RadioGroup: Codable, Hashable, Sendable {
147 | public let type: Int = 22
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
148 | public let custom_id: String
149 | public let options: [RadioOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:172:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
170 | /// Checkbox Group component (type 23). Multi-selection picker for modals; must be inside a Label.
171 | public struct CheckboxGroup: Codable, Hashable, Sendable {
172 | public let type: Int = 23
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
173 | public let custom_id: String
174 | public let options: [CheckboxOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:199:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
197 | /// Checkbox component (type 24). Boolean yes/no toggle for modals; must be inside a Label.
198 | public struct Checkbox: Codable, Hashable, Sendable {
199 | public let type: Int = 24
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
200 | public let custom_id: String
201 | public let required: Bool?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:213:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
211 | /// Must be inside a Label container. Introduced 2026.
212 | public struct FileUpload: Codable, Hashable, Sendable {
213 | public let type: Int = 25
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
214 | public let custom_id: String
215 | public let label: String
[60/109] Compiling SwiftDisc Guild.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
53 |
54 | public struct ActionRow: Codable, Hashable, Sendable {
55 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
56 | public let components: [MessageComponent]
57 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:61:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
59 |
60 | public struct Button: Codable, Hashable, Sendable {
61 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
62 | public let style: Int
63 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:88:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
86 | public let `default`: Bool?
87 | }
88 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
89 | public let custom_id: String
90 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:107:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
105 | public struct TextInput: Codable, Hashable, Sendable {
106 | public enum Style: Int, Codable, Sendable { case short = 1, paragraph = 2 }
107 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
108 | public let custom_id: String
109 | public let style: Style
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:133:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
131 | /// Provides a `label` and optional `description`, and wraps a single interactive component.
132 | public struct Label: Codable, Hashable, Sendable {
133 | public let type: Int = 21
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
134 | public let label: String
135 | public let description: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:147:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
145 | /// Radio Group component (type 22). Single-selection picker for modals; must be inside a Label.
146 | public struct RadioGroup: Codable, Hashable, Sendable {
147 | public let type: Int = 22
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
148 | public let custom_id: String
149 | public let options: [RadioOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:172:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
170 | /// Checkbox Group component (type 23). Multi-selection picker for modals; must be inside a Label.
171 | public struct CheckboxGroup: Codable, Hashable, Sendable {
172 | public let type: Int = 23
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
173 | public let custom_id: String
174 | public let options: [CheckboxOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:199:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
197 | /// Checkbox component (type 24). Boolean yes/no toggle for modals; must be inside a Label.
198 | public struct Checkbox: Codable, Hashable, Sendable {
199 | public let type: Int = 24
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
200 | public let custom_id: String
201 | public let required: Bool?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:213:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
211 | /// Must be inside a Label container. Introduced 2026.
212 | public struct FileUpload: Codable, Hashable, Sendable {
213 | public let type: Int = 25
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
214 | public let custom_id: String
215 | public let label: String
[61/109] Compiling SwiftDisc GuildBan.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
53 |
54 | public struct ActionRow: Codable, Hashable, Sendable {
55 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
56 | public let components: [MessageComponent]
57 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:61:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
59 |
60 | public struct Button: Codable, Hashable, Sendable {
61 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
62 | public let style: Int
63 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:88:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
86 | public let `default`: Bool?
87 | }
88 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
89 | public let custom_id: String
90 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:107:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
105 | public struct TextInput: Codable, Hashable, Sendable {
106 | public enum Style: Int, Codable, Sendable { case short = 1, paragraph = 2 }
107 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
108 | public let custom_id: String
109 | public let style: Style
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:133:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
131 | /// Provides a `label` and optional `description`, and wraps a single interactive component.
132 | public struct Label: Codable, Hashable, Sendable {
133 | public let type: Int = 21
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
134 | public let label: String
135 | public let description: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:147:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
145 | /// Radio Group component (type 22). Single-selection picker for modals; must be inside a Label.
146 | public struct RadioGroup: Codable, Hashable, Sendable {
147 | public let type: Int = 22
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
148 | public let custom_id: String
149 | public let options: [RadioOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:172:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
170 | /// Checkbox Group component (type 23). Multi-selection picker for modals; must be inside a Label.
171 | public struct CheckboxGroup: Codable, Hashable, Sendable {
172 | public let type: Int = 23
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
173 | public let custom_id: String
174 | public let options: [CheckboxOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:199:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
197 | /// Checkbox component (type 24). Boolean yes/no toggle for modals; must be inside a Label.
198 | public struct Checkbox: Codable, Hashable, Sendable {
199 | public let type: Int = 24
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
200 | public let custom_id: String
201 | public let required: Bool?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:213:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
211 | /// Must be inside a Label container. Introduced 2026.
212 | public struct FileUpload: Codable, Hashable, Sendable {
213 | public let type: Int = 25
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
214 | public let custom_id: String
215 | public let label: String
[62/109] Compiling SwiftDisc GuildMember.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
53 |
54 | public struct ActionRow: Codable, Hashable, Sendable {
55 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
56 | public let components: [MessageComponent]
57 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:61:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
59 |
60 | public struct Button: Codable, Hashable, Sendable {
61 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
62 | public let style: Int
63 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:88:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
86 | public let `default`: Bool?
87 | }
88 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
89 | public let custom_id: String
90 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:107:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
105 | public struct TextInput: Codable, Hashable, Sendable {
106 | public enum Style: Int, Codable, Sendable { case short = 1, paragraph = 2 }
107 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
108 | public let custom_id: String
109 | public let style: Style
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:133:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
131 | /// Provides a `label` and optional `description`, and wraps a single interactive component.
132 | public struct Label: Codable, Hashable, Sendable {
133 | public let type: Int = 21
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
134 | public let label: String
135 | public let description: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:147:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
145 | /// Radio Group component (type 22). Single-selection picker for modals; must be inside a Label.
146 | public struct RadioGroup: Codable, Hashable, Sendable {
147 | public let type: Int = 22
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
148 | public let custom_id: String
149 | public let options: [RadioOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:172:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
170 | /// Checkbox Group component (type 23). Multi-selection picker for modals; must be inside a Label.
171 | public struct CheckboxGroup: Codable, Hashable, Sendable {
172 | public let type: Int = 23
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
173 | public let custom_id: String
174 | public let options: [CheckboxOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:199:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
197 | /// Checkbox component (type 24). Boolean yes/no toggle for modals; must be inside a Label.
198 | public struct Checkbox: Codable, Hashable, Sendable {
199 | public let type: Int = 24
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
200 | public let custom_id: String
201 | public let required: Bool?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:213:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
211 | /// Must be inside a Label container. Introduced 2026.
212 | public struct FileUpload: Codable, Hashable, Sendable {
213 | public let type: Int = 25
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
214 | public let custom_id: String
215 | public let label: String
[63/109] Compiling SwiftDisc GuildPreview.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
53 |
54 | public struct ActionRow: Codable, Hashable, Sendable {
55 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
56 | public let components: [MessageComponent]
57 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:61:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
59 |
60 | public struct Button: Codable, Hashable, Sendable {
61 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
62 | public let style: Int
63 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:88:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
86 | public let `default`: Bool?
87 | }
88 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
89 | public let custom_id: String
90 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:107:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
105 | public struct TextInput: Codable, Hashable, Sendable {
106 | public enum Style: Int, Codable, Sendable { case short = 1, paragraph = 2 }
107 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
108 | public let custom_id: String
109 | public let style: Style
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:133:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
131 | /// Provides a `label` and optional `description`, and wraps a single interactive component.
132 | public struct Label: Codable, Hashable, Sendable {
133 | public let type: Int = 21
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
134 | public let label: String
135 | public let description: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:147:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
145 | /// Radio Group component (type 22). Single-selection picker for modals; must be inside a Label.
146 | public struct RadioGroup: Codable, Hashable, Sendable {
147 | public let type: Int = 22
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
148 | public let custom_id: String
149 | public let options: [RadioOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:172:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
170 | /// Checkbox Group component (type 23). Multi-selection picker for modals; must be inside a Label.
171 | public struct CheckboxGroup: Codable, Hashable, Sendable {
172 | public let type: Int = 23
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
173 | public let custom_id: String
174 | public let options: [CheckboxOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:199:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
197 | /// Checkbox component (type 24). Boolean yes/no toggle for modals; must be inside a Label.
198 | public struct Checkbox: Codable, Hashable, Sendable {
199 | public let type: Int = 24
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
200 | public let custom_id: String
201 | public let required: Bool?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:213:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
211 | /// Must be inside a Label container. Introduced 2026.
212 | public struct FileUpload: Codable, Hashable, Sendable {
213 | public let type: Int = 25
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
214 | public let custom_id: String
215 | public let label: String
[64/109] Compiling SwiftDisc GuildWidgetSettings.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
53 |
54 | public struct ActionRow: Codable, Hashable, Sendable {
55 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
56 | public let components: [MessageComponent]
57 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:61:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
59 |
60 | public struct Button: Codable, Hashable, Sendable {
61 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
62 | public let style: Int
63 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:88:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
86 | public let `default`: Bool?
87 | }
88 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
89 | public let custom_id: String
90 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:107:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
105 | public struct TextInput: Codable, Hashable, Sendable {
106 | public enum Style: Int, Codable, Sendable { case short = 1, paragraph = 2 }
107 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
108 | public let custom_id: String
109 | public let style: Style
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:133:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
131 | /// Provides a `label` and optional `description`, and wraps a single interactive component.
132 | public struct Label: Codable, Hashable, Sendable {
133 | public let type: Int = 21
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
134 | public let label: String
135 | public let description: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:147:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
145 | /// Radio Group component (type 22). Single-selection picker for modals; must be inside a Label.
146 | public struct RadioGroup: Codable, Hashable, Sendable {
147 | public let type: Int = 22
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
148 | public let custom_id: String
149 | public let options: [RadioOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:172:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
170 | /// Checkbox Group component (type 23). Multi-selection picker for modals; must be inside a Label.
171 | public struct CheckboxGroup: Codable, Hashable, Sendable {
172 | public let type: Int = 23
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
173 | public let custom_id: String
174 | public let options: [CheckboxOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:199:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
197 | /// Checkbox component (type 24). Boolean yes/no toggle for modals; must be inside a Label.
198 | public struct Checkbox: Codable, Hashable, Sendable {
199 | public let type: Int = 24
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
200 | public let custom_id: String
201 | public let required: Bool?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:213:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
211 | /// Must be inside a Label container. Introduced 2026.
212 | public struct FileUpload: Codable, Hashable, Sendable {
213 | public let type: Int = 25
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
214 | public let custom_id: String
215 | public let label: String
[65/109] Compiling SwiftDisc Interaction.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
53 |
54 | public struct ActionRow: Codable, Hashable, Sendable {
55 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
56 | public let components: [MessageComponent]
57 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:61:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
59 |
60 | public struct Button: Codable, Hashable, Sendable {
61 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
62 | public let style: Int
63 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:88:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
86 | public let `default`: Bool?
87 | }
88 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
89 | public let custom_id: String
90 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:107:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
105 | public struct TextInput: Codable, Hashable, Sendable {
106 | public enum Style: Int, Codable, Sendable { case short = 1, paragraph = 2 }
107 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
108 | public let custom_id: String
109 | public let style: Style
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:133:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
131 | /// Provides a `label` and optional `description`, and wraps a single interactive component.
132 | public struct Label: Codable, Hashable, Sendable {
133 | public let type: Int = 21
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
134 | public let label: String
135 | public let description: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:147:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
145 | /// Radio Group component (type 22). Single-selection picker for modals; must be inside a Label.
146 | public struct RadioGroup: Codable, Hashable, Sendable {
147 | public let type: Int = 22
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
148 | public let custom_id: String
149 | public let options: [RadioOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:172:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
170 | /// Checkbox Group component (type 23). Multi-selection picker for modals; must be inside a Label.
171 | public struct CheckboxGroup: Codable, Hashable, Sendable {
172 | public let type: Int = 23
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
173 | public let custom_id: String
174 | public let options: [CheckboxOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:199:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
197 | /// Checkbox component (type 24). Boolean yes/no toggle for modals; must be inside a Label.
198 | public struct Checkbox: Codable, Hashable, Sendable {
199 | public let type: Int = 24
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
200 | public let custom_id: String
201 | public let required: Bool?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:213:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
211 | /// Must be inside a Label container. Introduced 2026.
212 | public struct FileUpload: Codable, Hashable, Sendable {
213 | public let type: Int = 25
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
214 | public let custom_id: String
215 | public let label: String
[66/109] Compiling SwiftDisc Invite.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
53 |
54 | public struct ActionRow: Codable, Hashable, Sendable {
55 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
56 | public let components: [MessageComponent]
57 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:61:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
59 |
60 | public struct Button: Codable, Hashable, Sendable {
61 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
62 | public let style: Int
63 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:88:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
86 | public let `default`: Bool?
87 | }
88 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
89 | public let custom_id: String
90 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:107:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
105 | public struct TextInput: Codable, Hashable, Sendable {
106 | public enum Style: Int, Codable, Sendable { case short = 1, paragraph = 2 }
107 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
108 | public let custom_id: String
109 | public let style: Style
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:133:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
131 | /// Provides a `label` and optional `description`, and wraps a single interactive component.
132 | public struct Label: Codable, Hashable, Sendable {
133 | public let type: Int = 21
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
134 | public let label: String
135 | public let description: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:147:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
145 | /// Radio Group component (type 22). Single-selection picker for modals; must be inside a Label.
146 | public struct RadioGroup: Codable, Hashable, Sendable {
147 | public let type: Int = 22
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
148 | public let custom_id: String
149 | public let options: [RadioOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:172:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
170 | /// Checkbox Group component (type 23). Multi-selection picker for modals; must be inside a Label.
171 | public struct CheckboxGroup: Codable, Hashable, Sendable {
172 | public let type: Int = 23
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
173 | public let custom_id: String
174 | public let options: [CheckboxOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:199:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
197 | /// Checkbox component (type 24). Boolean yes/no toggle for modals; must be inside a Label.
198 | public struct Checkbox: Codable, Hashable, Sendable {
199 | public let type: Int = 24
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
200 | public let custom_id: String
201 | public let required: Bool?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:213:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
211 | /// Must be inside a Label container. Introduced 2026.
212 | public struct FileUpload: Codable, Hashable, Sendable {
213 | public let type: Int = 25
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
214 | public let custom_id: String
215 | public let label: String
[67/109] Compiling SwiftDisc Message.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
53 |
54 | public struct ActionRow: Codable, Hashable, Sendable {
55 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
56 | public let components: [MessageComponent]
57 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:61:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
59 |
60 | public struct Button: Codable, Hashable, Sendable {
61 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
62 | public let style: Int
63 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:88:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
86 | public let `default`: Bool?
87 | }
88 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
89 | public let custom_id: String
90 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:107:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
105 | public struct TextInput: Codable, Hashable, Sendable {
106 | public enum Style: Int, Codable, Sendable { case short = 1, paragraph = 2 }
107 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
108 | public let custom_id: String
109 | public let style: Style
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:133:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
131 | /// Provides a `label` and optional `description`, and wraps a single interactive component.
132 | public struct Label: Codable, Hashable, Sendable {
133 | public let type: Int = 21
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
134 | public let label: String
135 | public let description: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:147:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
145 | /// Radio Group component (type 22). Single-selection picker for modals; must be inside a Label.
146 | public struct RadioGroup: Codable, Hashable, Sendable {
147 | public let type: Int = 22
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
148 | public let custom_id: String
149 | public let options: [RadioOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:172:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
170 | /// Checkbox Group component (type 23). Multi-selection picker for modals; must be inside a Label.
171 | public struct CheckboxGroup: Codable, Hashable, Sendable {
172 | public let type: Int = 23
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
173 | public let custom_id: String
174 | public let options: [CheckboxOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:199:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
197 | /// Checkbox component (type 24). Boolean yes/no toggle for modals; must be inside a Label.
198 | public struct Checkbox: Codable, Hashable, Sendable {
199 | public let type: Int = 24
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
200 | public let custom_id: String
201 | public let required: Bool?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:213:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
211 | /// Must be inside a Label container. Introduced 2026.
212 | public struct FileUpload: Codable, Hashable, Sendable {
213 | public let type: Int = 25
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
214 | public let custom_id: String
215 | public let label: String
[68/109] Compiling SwiftDisc MessageComponents.swift
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:55:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
53 |
54 | public struct ActionRow: Codable, Hashable, Sendable {
55 | public let type: Int = 1
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
56 | public let components: [MessageComponent]
57 | public init(components: [MessageComponent]) { self.components = components }
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:61:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
59 |
60 | public struct Button: Codable, Hashable, Sendable {
61 | public let type: Int = 2
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
62 | public let style: Int
63 | public let label: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:88:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
86 | public let `default`: Bool?
87 | }
88 | public let type: Int = 3
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
89 | public let custom_id: String
90 | public let options: [Option]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:107:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
105 | public struct TextInput: Codable, Hashable, Sendable {
106 | public enum Style: Int, Codable, Sendable { case short = 1, paragraph = 2 }
107 | public let type: Int = 4
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
108 | public let custom_id: String
109 | public let style: Style
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:133:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
131 | /// Provides a `label` and optional `description`, and wraps a single interactive component.
132 | public struct Label: Codable, Hashable, Sendable {
133 | public let type: Int = 21
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
134 | public let label: String
135 | public let description: String?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:147:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
145 | /// Radio Group component (type 22). Single-selection picker for modals; must be inside a Label.
146 | public struct RadioGroup: Codable, Hashable, Sendable {
147 | public let type: Int = 22
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
148 | public let custom_id: String
149 | public let options: [RadioOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:172:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
170 | /// Checkbox Group component (type 23). Multi-selection picker for modals; must be inside a Label.
171 | public struct CheckboxGroup: Codable, Hashable, Sendable {
172 | public let type: Int = 23
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
173 | public let custom_id: String
174 | public let options: [CheckboxOption]
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:199:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
197 | /// Checkbox component (type 24). Boolean yes/no toggle for modals; must be inside a Label.
198 | public struct Checkbox: Codable, Hashable, Sendable {
199 | public let type: Int = 24
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
200 | public let custom_id: String
201 | public let required: Bool?
/host/spi-builder-workspace/Sources/SwiftDisc/Models/MessageComponents.swift:213:20: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
211 | /// Must be inside a Label container. Introduced 2026.
212 | public struct FileUpload: Codable, Hashable, Sendable {
213 | public let type: Int = 25
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'type' case to silence this warning
| `- note: make the property mutable instead
214 | public let custom_id: String
215 | public let label: String
[69/109] Compiling SwiftDisc StageInstance.swift
[70/109] Compiling SwiftDisc Sticker.swift
[71/109] Compiling SwiftDisc Template.swift
[72/109] Compiling SwiftDisc Thread.swift
[73/109] Compiling SwiftDisc User.swift
[74/109] Compiling SwiftDisc VanityURL.swift
[75/109] Compiling SwiftDisc Webhook.swift
[76/109] Compiling SwiftDisc HTTPClient.swift
[77/109] Compiling SwiftDisc RateLimitEvent.swift
[78/109] Compiling SwiftDisc SlashCommandBuilder.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ViewManager.swift:76:25: warning: result of 'try?' is unused [#no-usage]
74 | if let comps = msg.components {
75 | let disabled = disableComponents(comps)
76 | try? await client.editMessage(channelId: channelId, messageId: messageId, components: disabled)
| `- warning: result of 'try?' is unused [#no-usage]
77 | }
78 | } catch {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:108:19: error: cannot find 'URLRequest' in scope
106 | )
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | req.httpMethod = "POST"
110 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:120:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
118 | }
119 |
120 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 | if let httpResponse = response as? HTTPURLResponse,
122 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:158:19: error: cannot find 'URLRequest' in scope
156 | let body = PatchBody(content: content, embeds: embeds, components: components)
157 |
158 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
159 | req.httpMethod = "PATCH"
160 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:170:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | if let httpResponse = response as? HTTPURLResponse,
172 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:189:19: error: cannot find 'URLRequest' in scope
187 | throw WebhookError.invalidURL(urlStr)
188 | }
189 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:191:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 | var req = URLRequest(url: url)
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | if let httpResponse = response as? HTTPURLResponse,
193 | !(200..<300).contains(httpResponse.statusCode) {
[79/109] Compiling SwiftDisc SlashCommandRouter.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ViewManager.swift:76:25: warning: result of 'try?' is unused [#no-usage]
74 | if let comps = msg.components {
75 | let disabled = disableComponents(comps)
76 | try? await client.editMessage(channelId: channelId, messageId: messageId, components: disabled)
| `- warning: result of 'try?' is unused [#no-usage]
77 | }
78 | } catch {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:108:19: error: cannot find 'URLRequest' in scope
106 | )
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | req.httpMethod = "POST"
110 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:120:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
118 | }
119 |
120 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 | if let httpResponse = response as? HTTPURLResponse,
122 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:158:19: error: cannot find 'URLRequest' in scope
156 | let body = PatchBody(content: content, embeds: embeds, components: components)
157 |
158 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
159 | req.httpMethod = "PATCH"
160 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:170:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | if let httpResponse = response as? HTTPURLResponse,
172 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:189:19: error: cannot find 'URLRequest' in scope
187 | throw WebhookError.invalidURL(urlStr)
188 | }
189 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:191:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 | var req = URLRequest(url: url)
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | if let httpResponse = response as? HTTPURLResponse,
193 | !(200..<300).contains(httpResponse.statusCode) {
[80/109] Compiling SwiftDisc Utilities.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ViewManager.swift:76:25: warning: result of 'try?' is unused [#no-usage]
74 | if let comps = msg.components {
75 | let disabled = disableComponents(comps)
76 | try? await client.editMessage(channelId: channelId, messageId: messageId, components: disabled)
| `- warning: result of 'try?' is unused [#no-usage]
77 | }
78 | } catch {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:108:19: error: cannot find 'URLRequest' in scope
106 | )
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | req.httpMethod = "POST"
110 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:120:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
118 | }
119 |
120 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 | if let httpResponse = response as? HTTPURLResponse,
122 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:158:19: error: cannot find 'URLRequest' in scope
156 | let body = PatchBody(content: content, embeds: embeds, components: components)
157 |
158 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
159 | req.httpMethod = "PATCH"
160 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:170:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | if let httpResponse = response as? HTTPURLResponse,
172 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:189:19: error: cannot find 'URLRequest' in scope
187 | throw WebhookError.invalidURL(urlStr)
188 | }
189 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:191:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 | var req = URLRequest(url: url)
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | if let httpResponse = response as? HTTPURLResponse,
193 | !(200..<300).contains(httpResponse.statusCode) {
[81/109] Compiling SwiftDisc ViewManager.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ViewManager.swift:76:25: warning: result of 'try?' is unused [#no-usage]
74 | if let comps = msg.components {
75 | let disabled = disableComponents(comps)
76 | try? await client.editMessage(channelId: channelId, messageId: messageId, components: disabled)
| `- warning: result of 'try?' is unused [#no-usage]
77 | }
78 | } catch {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:108:19: error: cannot find 'URLRequest' in scope
106 | )
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | req.httpMethod = "POST"
110 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:120:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
118 | }
119 |
120 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 | if let httpResponse = response as? HTTPURLResponse,
122 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:158:19: error: cannot find 'URLRequest' in scope
156 | let body = PatchBody(content: content, embeds: embeds, components: components)
157 |
158 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
159 | req.httpMethod = "PATCH"
160 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:170:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | if let httpResponse = response as? HTTPURLResponse,
172 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:189:19: error: cannot find 'URLRequest' in scope
187 | throw WebhookError.invalidURL(urlStr)
188 | }
189 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:191:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 | var req = URLRequest(url: url)
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | if let httpResponse = response as? HTTPURLResponse,
193 | !(200..<300).contains(httpResponse.statusCode) {
[82/109] Compiling SwiftDisc WebhookClient.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ViewManager.swift:76:25: warning: result of 'try?' is unused [#no-usage]
74 | if let comps = msg.components {
75 | let disabled = disableComponents(comps)
76 | try? await client.editMessage(channelId: channelId, messageId: messageId, components: disabled)
| `- warning: result of 'try?' is unused [#no-usage]
77 | }
78 | } catch {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:108:19: error: cannot find 'URLRequest' in scope
106 | )
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | req.httpMethod = "POST"
110 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:120:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
118 | }
119 |
120 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 | if let httpResponse = response as? HTTPURLResponse,
122 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:158:19: error: cannot find 'URLRequest' in scope
156 | let body = PatchBody(content: content, embeds: embeds, components: components)
157 |
158 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
159 | req.httpMethod = "PATCH"
160 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:170:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | if let httpResponse = response as? HTTPURLResponse,
172 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:189:19: error: cannot find 'URLRequest' in scope
187 | throw WebhookError.invalidURL(urlStr)
188 | }
189 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:191:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 | var req = URLRequest(url: url)
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | if let httpResponse = response as? HTTPURLResponse,
193 | !(200..<300).contains(httpResponse.statusCode) {
[83/109] Compiling SwiftDisc Cache.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ViewManager.swift:76:25: warning: result of 'try?' is unused [#no-usage]
74 | if let comps = msg.components {
75 | let disabled = disableComponents(comps)
76 | try? await client.editMessage(channelId: channelId, messageId: messageId, components: disabled)
| `- warning: result of 'try?' is unused [#no-usage]
77 | }
78 | } catch {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:108:19: error: cannot find 'URLRequest' in scope
106 | )
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | req.httpMethod = "POST"
110 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:120:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
118 | }
119 |
120 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 | if let httpResponse = response as? HTTPURLResponse,
122 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:158:19: error: cannot find 'URLRequest' in scope
156 | let body = PatchBody(content: content, embeds: embeds, components: components)
157 |
158 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
159 | req.httpMethod = "PATCH"
160 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:170:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | if let httpResponse = response as? HTTPURLResponse,
172 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:189:19: error: cannot find 'URLRequest' in scope
187 | throw WebhookError.invalidURL(urlStr)
188 | }
189 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:191:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 | var req = URLRequest(url: url)
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | if let httpResponse = response as? HTTPURLResponse,
193 | !(200..<300).contains(httpResponse.statusCode) {
[84/109] Compiling SwiftDisc DiscordConfiguration.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ViewManager.swift:76:25: warning: result of 'try?' is unused [#no-usage]
74 | if let comps = msg.components {
75 | let disabled = disableComponents(comps)
76 | try? await client.editMessage(channelId: channelId, messageId: messageId, components: disabled)
| `- warning: result of 'try?' is unused [#no-usage]
77 | }
78 | } catch {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:108:19: error: cannot find 'URLRequest' in scope
106 | )
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | req.httpMethod = "POST"
110 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:120:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
118 | }
119 |
120 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 | if let httpResponse = response as? HTTPURLResponse,
122 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:158:19: error: cannot find 'URLRequest' in scope
156 | let body = PatchBody(content: content, embeds: embeds, components: components)
157 |
158 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
159 | req.httpMethod = "PATCH"
160 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:170:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | if let httpResponse = response as? HTTPURLResponse,
172 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:189:19: error: cannot find 'URLRequest' in scope
187 | throw WebhookError.invalidURL(urlStr)
188 | }
189 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:191:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 | var req = URLRequest(url: url)
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | if let httpResponse = response as? HTTPURLResponse,
193 | !(200..<300).contains(httpResponse.statusCode) {
[85/109] Compiling SwiftDisc DiscordError.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ViewManager.swift:76:25: warning: result of 'try?' is unused [#no-usage]
74 | if let comps = msg.components {
75 | let disabled = disableComponents(comps)
76 | try? await client.editMessage(channelId: channelId, messageId: messageId, components: disabled)
| `- warning: result of 'try?' is unused [#no-usage]
77 | }
78 | } catch {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:108:19: error: cannot find 'URLRequest' in scope
106 | )
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | req.httpMethod = "POST"
110 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:120:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
118 | }
119 |
120 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 | if let httpResponse = response as? HTTPURLResponse,
122 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:158:19: error: cannot find 'URLRequest' in scope
156 | let body = PatchBody(content: content, embeds: embeds, components: components)
157 |
158 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
159 | req.httpMethod = "PATCH"
160 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:170:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | if let httpResponse = response as? HTTPURLResponse,
172 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:189:19: error: cannot find 'URLRequest' in scope
187 | throw WebhookError.invalidURL(urlStr)
188 | }
189 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:191:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 | var req = URLRequest(url: url)
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | if let httpResponse = response as? HTTPURLResponse,
193 | !(200..<300).contains(httpResponse.statusCode) {
[86/109] Compiling SwiftDisc DiscordUtils.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ViewManager.swift:76:25: warning: result of 'try?' is unused [#no-usage]
74 | if let comps = msg.components {
75 | let disabled = disableComponents(comps)
76 | try? await client.editMessage(channelId: channelId, messageId: messageId, components: disabled)
| `- warning: result of 'try?' is unused [#no-usage]
77 | }
78 | } catch {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:108:19: error: cannot find 'URLRequest' in scope
106 | )
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | req.httpMethod = "POST"
110 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:120:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
118 | }
119 |
120 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 | if let httpResponse = response as? HTTPURLResponse,
122 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:158:19: error: cannot find 'URLRequest' in scope
156 | let body = PatchBody(content: content, embeds: embeds, components: components)
157 |
158 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
159 | req.httpMethod = "PATCH"
160 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:170:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | if let httpResponse = response as? HTTPURLResponse,
172 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:189:19: error: cannot find 'URLRequest' in scope
187 | throw WebhookError.invalidURL(urlStr)
188 | }
189 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:191:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 | var req = URLRequest(url: url)
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | if let httpResponse = response as? HTTPURLResponse,
193 | !(200..<300).contains(httpResponse.statusCode) {
[87/109] Compiling SwiftDisc EventDispatcher.swift
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/ViewManager.swift:76:25: warning: result of 'try?' is unused [#no-usage]
74 | if let comps = msg.components {
75 | let disabled = disableComponents(comps)
76 | try? await client.editMessage(channelId: channelId, messageId: messageId, components: disabled)
| `- warning: result of 'try?' is unused [#no-usage]
77 | }
78 | } catch {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:108:19: error: cannot find 'URLRequest' in scope
106 | )
107 |
108 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
109 | req.httpMethod = "POST"
110 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:120:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
118 | }
119 |
120 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 | if let httpResponse = response as? HTTPURLResponse,
122 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:158:19: error: cannot find 'URLRequest' in scope
156 | let body = PatchBody(content: content, embeds: embeds, components: components)
157 |
158 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
159 | req.httpMethod = "PATCH"
160 |
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:170:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | if let httpResponse = response as? HTTPURLResponse,
172 | !(200..<300).contains(httpResponse.statusCode) {
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:189:19: error: cannot find 'URLRequest' in scope
187 | throw WebhookError.invalidURL(urlStr)
188 | }
189 | var req = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
/host/spi-builder-workspace/Sources/SwiftDisc/HighLevel/WebhookClient.swift:191:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 | var req = URLRequest(url: url)
190 | req.httpMethod = "DELETE"
191 | let (data, response) = try await URLSession.shared.data(for: req)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
192 | if let httpResponse = response as? HTTPURLResponse,
193 | !(200..<300).contains(httpResponse.statusCode) {
BUILD FAILURE 6.3 wasm