Build Information
Failed to build DiscordKit, reference main (58cf09), with Swift 6.3 for Linux on 7 Sep 2026 17:33:20 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[1000/1119] Compiling DiscordKitCore APIEmoji.swift
[1001/1119] Compiling DiscordKitCore APIGIFPicker.swift
[1002/1119] Compiling DiscordKitCore APIGateway.swift
[1003/1119] Compiling DiscordKitCore APIGuild.swift
[1004/1119] Compiling DiscordKitCore APIGuildScheduledEvent.swift
[1005/1119] Compiling DiscordKitCore APIGuildTemplate.swift
[1006/1119] Compiling DiscordKitCore APIInvite.swift
[1007/1119] Compiling DiscordKitCore APILobbies.swift
[1008/1119] Compiling DiscordKitCore APIMessageSearch.swift
[1009/1119] Compiling DiscordKitCore APIMultipartFormBody.swift
[1010/1119] Compiling DiscordKitCore APIOAuth2.swift
[1011/1119] Compiling DiscordKitCore APIReceivingandResponding.swift
[1012/1119] Compiling DiscordKitCore APIRequest.swift
[1013/1119] Compiling DiscordKitCore APISoundboard.swift
[1014/1119] Compiling DiscordKitCore APIStageInstance.swift
[1015/1119] Compiling DiscordKitCore APISticker.swift
[1016/1119] Compiling DiscordKitCore APIStore.swift
[1017/1136] Compiling DiscordKitCore MessageReadAck.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1018/1136] Compiling DiscordKitCore MessageSearch.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1019/1136] Compiling DiscordKitCore NewMessage.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1020/1136] Compiling DiscordKitCore PinnedMessages.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1021/1136] Compiling DiscordKitCore PollRequest.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1022/1136] Compiling DiscordKitCore ResolvedInvite.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1023/1136] Compiling DiscordKitCore UserSettingsProto.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1024/1136] Compiling DiscordKitCore APIAchievements.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1025/1136] Compiling DiscordKitCore APIAdministration.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1026/1136] Compiling DiscordKitCore APIApplicationCommands.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1027/1136] Compiling DiscordKitCore APIApplicationRoleConnectionMetadata.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1028/1136] Compiling DiscordKitCore APIAttachmentUpload.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1029/1136] Compiling DiscordKitCore APIAuditLog.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1030/1136] Compiling DiscordKitCore APIAutoModeration.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1031/1136] Compiling DiscordKitCore APIChannel.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1032/1136] Compiling DiscordKitCore APICollectibles.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1033/1136] Compiling DiscordKitCore APICurrentUser.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIAttachmentUpload.swift:102:21: warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
100 |
101 | private final class SessionDelegate: NSObject, URLSessionTaskDelegate {
102 | private let progress: (Double) -> Void
| |- warning: stored property 'progress' of 'Sendable'-conforming class 'SessionDelegate' has non-Sendable type '(Double) -> ()'; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 |
104 | init(progress: @escaping (Double) -> Void) {
[1034/1136] Compiling DiscordKitCore APIUtils.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1035/1136] Compiling DiscordKitCore DiscordKitConfig.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1036/1136] Compiling DiscordKitCore DiscordREST.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1037/1136] Compiling DiscordKitCore Collection+Identifiable.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1038/1136] Compiling DiscordKitCore Int+decodeFlags.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1039/1136] Compiling DiscordKitCore Logger+.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1040/1136] Compiling DiscordKitCore Activity+.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1041/1136] Compiling DiscordKitCore HashedAssetScopes+.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1042/1136] Compiling DiscordKitCore Message+.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1043/1136] Compiling DiscordKitCore User+.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1044/1136] Compiling DiscordKitCore Snowflake+decode.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1045/1136] Compiling DiscordKitCore String+random.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1046/1136] Compiling DiscordKitCore URL+.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1047/1136] Compiling DiscordKitCore URLSession+.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1048/1136] Compiling DiscordKitCore DecompressionEngine.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1049/1136] Compiling DiscordKitCore GatewayIdentify.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1050/1136] Compiling DiscordKitCore Intents.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1051/1136] Compiling DiscordKitCore RobustWebSocket.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:25:14: warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | /// A robust WebSocket that handles resuming, reconnection and heartbeats
24 | /// with the Discord Gateway.
25 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | // swiftlint:disable:previous type_body_length
27 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:30:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
28 | /// An ``EventDispatch`` that is notified when an event dispatch
29 | /// is received from the Gateway.
30 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
31 |
32 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:34:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
32 | /// An ``EventDispatch`` that is notified when the gateway closes
33 | /// with an auth failure, or when no connection info is available.
34 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
35 |
36 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:39:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
37 | /// or reachability status changes. Event is notified with
38 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
39 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
40 |
41 | /// An ``EventDispatch`` that is notified when the saved session is
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:43:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
41 | /// An ``EventDispatch`` that is notified when the saved session is
42 | /// no longer trusted and the next connection will identify fresh.
43 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<()>'; this is an error in the Swift 6 language mode
44 |
45 | private enum ConnectionState: String {
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:83:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
81 | private static let authFailureCloseCode = 4004
82 |
83 | private var session: URLSession!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
84 | private var decompressor = DecompressionEngine()
85 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:259:17: warning: no calls to throwing functions occur within 'try' expression
257 | socket = webSocket
258 | do {
259 | try webSocket.connect(
| `- warning: no calls to throwing functions occur within 'try' expression
260 | url: connectionURL,
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:263:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
261 | headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent))
262 | )
263 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
264 | if handleClose(
265 | wasClean: false,
[1052/1136] Compiling DiscordKitCore Voice.swift
[1053/1136] Compiling DiscordKitCore ApplicationObj.swift
[1054/1136] Compiling DiscordKitCore DataStructs.swift
[1055/1136] Compiling DiscordKitCore ChUnreadUpdate.swift
[1056/1136] Compiling DiscordKitCore ChannelPinsUpdate.swift
[1057/1136] Compiling DiscordKitCore GatewayEvent.swift
[1058/1136] Compiling DiscordKitCore GatewaySettingsProtoUpdate.swift
[1059/1136] Compiling DiscordKitCore GuildBan.swift
[1060/1136] Compiling DiscordKitCore GuildMemberEvt.swift
[1061/1136] Compiling DiscordKitCore GuildMembersChunk.swift
[1062/1136] Compiling DiscordKitCore GuildMiscUpdate.swift
[1063/1136] Compiling DiscordKitCore GuildRoleEvt.swift
[1064/1136] Compiling DiscordKitCore GuildSchEvtUserEvt.swift
[1065/1136] Compiling DiscordKitCore MessageACKEvt.swift
[1066/1136] Compiling DiscordKitCore MessageDelete.swift
[1067/1136] Compiling DiscordKitCore MessagePollVote.swift
[1068/1136] Compiling DiscordKitCore MessageReaction.swift
[1069/1136] Compiling DiscordKitCore APIStream.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1070/1136] Compiling DiscordKitCore APITyping.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1071/1136] Compiling DiscordKitCore APIUser.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1072/1136] Compiling DiscordKitCore APIUserSettingsProto.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1073/1136] Compiling DiscordKitCore APIVoice.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1074/1136] Compiling DiscordKitCore APIWebhook.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1075/1136] Compiling DiscordKitCore EditMessage.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1076/1136] Compiling DiscordKitCore Data+Base64.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1077/1136] Compiling DiscordKitCore DecodeThrowable.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1078/1136] Compiling DiscordKitCore DefaultDecodable.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1079/1136] Compiling DiscordKitCore DiscordRange.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1080/1136] Compiling DiscordKitCore EventDispatch.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1081/1136] Compiling DiscordKitCore HashedAsset.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1082/1136] Compiling DiscordKitCore HashedAssetTypes.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1083/1136] Compiling DiscordKitCore HybridSnowflake.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1084/1136] Compiling DiscordKitCore NormalizedPresence.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1085/1136] Compiling DiscordKitCore NullEncodable.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:40:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | private func decodeUserSettingsProtoResponse(
39 | data: Data,
40 | response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:42:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
40 | response: HTTPURLResponse
41 | ) throws -> UserSettingsProtoResponse {
42 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
43 | case 200..<300:
44 | do {
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:50:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
48 | }
49 | case 429:
50 | let retryAfter = response.value(forHTTPHeaderField: "retry-after")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
51 | .flatMap(Int.init)
52 | .map(TimeInterval.init) ?? 60
/host/spi-builder-workspace/Sources/DiscordKitCore/REST/APIUserSettingsProto.swift:64:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 | fallthrough
63 | default:
64 | throw RequestError.unexpectedResponseCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
65 | }
66 | }
[1086/1136] Compiling DiscordKitCore Mention.swift
[1087/1136] Compiling DiscordKitCore Message.swift
[1088/1136] Compiling DiscordKitCore MessageSnapshot.swift
[1089/1136] Compiling DiscordKitCore Nonce.swift
[1090/1136] Compiling DiscordKitCore Permission.swift
[1091/1136] Compiling DiscordKitCore Poll.swift
[1092/1136] Compiling DiscordKitCore Presence.swift
[1093/1136] Compiling DiscordKitCore Reaction.swift
[1094/1136] Compiling DiscordKitCore Snowflake.swift
[1095/1136] Compiling DiscordKitCore Soundboard.swift
[1096/1136] Compiling DiscordKitCore Stage.swift
[1097/1136] Compiling DiscordKitCore Sticker.swift
[1098/1136] Compiling DiscordKitCore Stream.swift
[1099/1136] Compiling DiscordKitCore Team.swift
[1100/1136] Compiling DiscordKitCore User+Flags.swift
[1101/1136] Compiling DiscordKitCore User+PremiumType.swift
[1102/1136] Compiling DiscordKitCore User.swift
[1103/1136] Compiling DiscordKitCore ReadyEvt.swift
[1104/1136] Compiling DiscordKitCore ReadySuppEvt.swift
[1105/1136] Compiling DiscordKitCore ThreadListSync.swift
[1106/1136] Compiling DiscordKitCore ThreadMembersUpdate.swift
[1107/1136] Compiling DiscordKitCore TypingStart.swift
[1108/1136] Compiling DiscordKitCore TypingStartEvt.swift
[1109/1136] Compiling DiscordKitCore VoiceEvt.swift
[1110/1136] Compiling DiscordKitCore Gateway.swift
[1111/1136] Compiling DiscordKitCore GatewayIO.swift
[1112/1136] Compiling DiscordKitCore ReadState.swift
[1113/1136] Compiling DiscordKitCore UserGuildSettings.swift
[1114/1136] Compiling DiscordKitCore UserSettings.swift
[1115/1136] Compiling DiscordKitCore AttachmentUpload.swift
[1116/1136] Compiling DiscordKitCore CreateForumPost.swift
[1117/1136] Compiling DiscordKitCore ForumPostData.swift
[1118/1136] Compiling DiscordKitCore GIFPicker.swift
[1119/1136] Compiling DiscordKitCore LogOut.swift
[1120/1136] Compiling DiscordKitCore Activity.swift
[1121/1136] Compiling DiscordKitCore AppCommand.swift
[1122/1136] Compiling DiscordKitCore Application.swift
[1123/1136] Compiling DiscordKitCore Attachment.swift
[1124/1136] Compiling DiscordKitCore Channel.swift
[1125/1136] Compiling DiscordKitCore ClientProperties.swift
[1126/1136] Compiling DiscordKitCore Collectibles.swift
[1127/1136] Compiling DiscordKitCore Connection.swift
[1128/1136] Compiling DiscordKitCore Embed.swift
[1129/1136] Compiling DiscordKitCore Emoji.swift
[1130/1136] Compiling DiscordKitCore Guild.swift
[1131/1136] Compiling DiscordKitCore Integration.swift
[1132/1136] Compiling DiscordKitCore Interaction.swift
[1133/1136] Compiling DiscordKitCore Levels.swift
[1134/1136] Compiling DiscordKitCore Locale.swift
[1135/1136] Compiling DiscordKitCore Member+Flags.swift
[1136/1136] Compiling DiscordKitCore Member.swift
BUILD FAILURE 6.3 linux