The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build DiscordKit, reference main (2da56f), with Swift 6.0 for Linux on 29 Nov 2024 11:01:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

 45 |     // swiftlint:disable:previous type_body_length
 46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49: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
 47 |     /// An ``EventDispatch`` that is notified when an event dispatch
 48 |     /// is received from the Gateway
 49 |     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
 50 |
 51 |     /// 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:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 52 |     /// with an auth failure, or when the token is not present
 53 |     /// in the keychain
 54 |     public let onAuthFailure = EventDispatch<Void>()
    |                `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 55 |
 56 |     /// 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:59: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
 57 |     /// or reachability status changes. Event is notified with
 58 |     /// a (sessionOpen: Bool, reachable: Bool) tuple.
 59 |     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
 60 |
 61 |     /// An ``EventDispatch`` that is notified when the session cannot be
/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:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 63 |     /// long and the session is invalidated. A fresh reconnection will
 64 |     /// be attempted if/when this happens.
 65 |     public let onSessionInvalid = EventDispatch<Void>()
    |                `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 66 |
 67 |     private var session: URLSession!, decompressor: DecompressionEngine!
/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:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
 65 |     public let onSessionInvalid = EventDispatch<Void>()
 66 |
 67 |     private var session: URLSession!, decompressor: DecompressionEngine!
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
 68 |
 69 |     #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 |         socket = WebSocket()
273 |         do {
274 |             try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
    |             `- warning: no calls to throwing functions occur within 'try' expression
275 |         } catch {
276 |             Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 |         do {
274 |             try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 |             Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 |         }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 |         Self.log.trace("Outgoing Payload", metadata: [
642 |             "opcode": "\(opcode)",
643 |             "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
    |                        |                               |- note: use 'String(describing:)' to silence this warning
    |                        |                               `- note: provide a default value to avoid this warning
    |                        `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 |             "seq": "\(seq ?? -1)"
645 |         ])
[1093/1095] Compiling DiscordKitCore Emoji.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/DiscordKitConfig.swift:258:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
256 |         electronVersion: "13.6.6"
257 |     )
258 |     public static var `default` = Self()
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 | }
260 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:26:23: warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
24 |
25 |     /// Guilds
26 |     static public let guilds       = Self(rawValue: 1 << 0)
   |                       |- warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guilds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |     /// Guild members
28 |     ///
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:30:23: warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
28 |     ///
29 |     /// > Warning: This is a privileged intent
30 |     static public let guildMembers = Self(rawValue: 1 << 1)
   |                       |- warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guildMembers' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     /// Guild bans
32 |     static public let guildBans    = Self(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:32:23: warning: static property 'guildBans' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
30 |     static public let guildMembers = Self(rawValue: 1 << 1)
31 |     /// Guild bans
32 |     static public let guildBans    = Self(rawValue: 1 << 2)
   |                       |- warning: static property 'guildBans' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guildBans' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     /// Guild emote and stickers
34 |     static public let emoteSticker = Self(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:34:23: warning: static property 'emoteSticker' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
32 |     static public let guildBans    = Self(rawValue: 1 << 2)
33 |     /// Guild emote and stickers
34 |     static public let emoteSticker = Self(rawValue: 1 << 3)
   |                       |- warning: static property 'emoteSticker' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'emoteSticker' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |     /// Guild integrations
36 |     static public let integrations = Self(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:36:23: warning: static property 'integrations' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
34 |     static public let emoteSticker = Self(rawValue: 1 << 3)
35 |     /// Guild integrations
36 |     static public let integrations = Self(rawValue: 1 << 4)
   |                       |- warning: static property 'integrations' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'integrations' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |     /// Guild webhooks
38 |     static public let webhooks     = Self(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:38:23: warning: static property 'webhooks' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
36 |     static public let integrations = Self(rawValue: 1 << 4)
37 |     /// Guild webhooks
38 |     static public let webhooks     = Self(rawValue: 1 << 5)
   |                       |- warning: static property 'webhooks' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webhooks' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |     /// Guild invites
40 |     static public let guildInvites = Self(rawValue: 1 << 6)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:40:23: warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
38 |     static public let webhooks     = Self(rawValue: 1 << 5)
39 |     /// Guild invites
40 |     static public let guildInvites = Self(rawValue: 1 << 6)
   |                       |- warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guildInvites' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     /// Guild voice states
42 |     static public let voiceStates  = Self(rawValue: 1 << 7)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:42:23: warning: static property 'voiceStates' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
40 |     static public let guildInvites = Self(rawValue: 1 << 6)
41 |     /// Guild voice states
42 |     static public let voiceStates  = Self(rawValue: 1 << 7)
   |                       |- warning: static property 'voiceStates' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'voiceStates' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |     /// Guild presences
44 |     ///
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:46:23: warning: static property 'presences' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
44 |     ///
45 |     /// > Warning: This is a privileged intent
46 |     static public let presences    = Self(rawValue: 1 << 8)
   |                       |- warning: static property 'presences' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'presences' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |     /// Guild messages
48 |     static public let messages     = Self(rawValue: 1 << 9)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:48:23: warning: static property 'messages' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
46 |     static public let presences    = Self(rawValue: 1 << 8)
47 |     /// Guild messages
48 |     static public let messages     = Self(rawValue: 1 << 9)
   |                       |- warning: static property 'messages' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'messages' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |     /// Guild message reactions
50 |     static public let reactions    = Self(rawValue: 1 << 10)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:50:23: warning: static property 'reactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
48 |     static public let messages     = Self(rawValue: 1 << 9)
49 |     /// Guild message reactions
50 |     static public let reactions    = Self(rawValue: 1 << 10)
   |                       |- warning: static property 'reactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'reactions' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |     /// Guild message typing
52 |     static public let msgTyping    = Self(rawValue: 1 << 11)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:52:23: warning: static property 'msgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
50 |     static public let reactions    = Self(rawValue: 1 << 10)
51 |     /// Guild message typing
52 |     static public let msgTyping    = Self(rawValue: 1 << 11)
   |                       |- warning: static property 'msgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'msgTyping' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |     /// Direct messages
54 |     static public let directMsgs   = Self(rawValue: 1 << 12)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:54:23: warning: static property 'directMsgs' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
52 |     static public let msgTyping    = Self(rawValue: 1 << 11)
53 |     /// Direct messages
54 |     static public let directMsgs   = Self(rawValue: 1 << 12)
   |                       |- warning: static property 'directMsgs' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'directMsgs' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |     /// DM reactions
56 |     static public let dmReactions  = Self(rawValue: 1 << 13)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:56:23: warning: static property 'dmReactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
54 |     static public let directMsgs   = Self(rawValue: 1 << 12)
55 |     /// DM reactions
56 |     static public let dmReactions  = Self(rawValue: 1 << 13)
   |                       |- warning: static property 'dmReactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'dmReactions' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |     /// DM message typing
58 |     static public let dmMsgTyping  = Self(rawValue: 1 << 14)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:58:23: warning: static property 'dmMsgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
56 |     static public let dmReactions  = Self(rawValue: 1 << 13)
57 |     /// DM message typing
58 |     static public let dmMsgTyping  = Self(rawValue: 1 << 14)
   |                       |- warning: static property 'dmMsgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'dmMsgTyping' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |     /// Message content
60 |     ///
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:64:23: warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
62 |     /// is present for events that could contain message content fields.
63 |     /// > Warning: This is a privileged intent
64 |     static public let messageContent = Self(rawValue: 1 << 15)
   |                       |- warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'messageContent' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |     /// Guild scheduled events
66 |     static public let scheduledEvt = Self(rawValue: 1 << 16)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:66:23: warning: static property 'scheduledEvt' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
64 |     static public let messageContent = Self(rawValue: 1 << 15)
65 |     /// Guild scheduled events
66 |     static public let scheduledEvt = Self(rawValue: 1 << 16)
   |                       |- warning: static property 'scheduledEvt' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'scheduledEvt' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |     /// Auto moderation configuration
68 |     static public let autoModCfg   = Self(rawValue: 1 << 20)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:68:23: warning: static property 'autoModCfg' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
66 |     static public let scheduledEvt = Self(rawValue: 1 << 16)
67 |     /// Auto moderation configuration
68 |     static public let autoModCfg   = Self(rawValue: 1 << 20)
   |                       |- warning: static property 'autoModCfg' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'autoModCfg' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 |     /// Auto moderation execution
70 |     static public let autoModExec  = Self(rawValue: 1 << 20)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:70:23: warning: static property 'autoModExec' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
68 |     static public let autoModCfg   = Self(rawValue: 1 << 20)
69 |     /// Auto moderation execution
70 |     static public let autoModExec  = Self(rawValue: 1 << 20)
   |                       |- warning: static property 'autoModExec' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'autoModExec' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:72:23: warning: static property 'unprivileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
70 |     static public let autoModExec  = Self(rawValue: 1 << 20)
71 |
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
   |                       |- warning: static property 'unprivileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'unprivileged' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |     static public let privileged: Self = [.guildMembers, .presences, .messageContent]
74 |     static public let all: Self = [.unprivileged, .privileged]
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:73:23: warning: static property 'privileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
71 |
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
73 |     static public let privileged: Self = [.guildMembers, .presences, .messageContent]
   |                       |- warning: static property 'privileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'privileged' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 |     static public let all: Self = [.unprivileged, .privileged]
75 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:74:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
73 |     static public let privileged: Self = [.guildMembers, .presences, .messageContent]
74 |     static public let all: Self = [.unprivileged, .privileged]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | }
76 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
 43 | /// > underlyingly and is higher-level for more ease of use.
 44 | public class RobustWebSocket: NSObject {
    |              `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 45 |     // swiftlint:disable:previous type_body_length
 46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49: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
 47 |     /// An ``EventDispatch`` that is notified when an event dispatch
 48 |     /// is received from the Gateway
 49 |     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
 50 |
 51 |     /// 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:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 52 |     /// with an auth failure, or when the token is not present
 53 |     /// in the keychain
 54 |     public let onAuthFailure = EventDispatch<Void>()
    |                `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 55 |
 56 |     /// 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:59: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
 57 |     /// or reachability status changes. Event is notified with
 58 |     /// a (sessionOpen: Bool, reachable: Bool) tuple.
 59 |     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
 60 |
 61 |     /// An ``EventDispatch`` that is notified when the session cannot be
/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:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 63 |     /// long and the session is invalidated. A fresh reconnection will
 64 |     /// be attempted if/when this happens.
 65 |     public let onSessionInvalid = EventDispatch<Void>()
    |                `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 66 |
 67 |     private var session: URLSession!, decompressor: DecompressionEngine!
/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:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
 65 |     public let onSessionInvalid = EventDispatch<Void>()
 66 |
 67 |     private var session: URLSession!, decompressor: DecompressionEngine!
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
 68 |
 69 |     #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 |         socket = WebSocket()
273 |         do {
274 |             try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
    |             `- warning: no calls to throwing functions occur within 'try' expression
275 |         } catch {
276 |             Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 |         do {
274 |             try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 |             Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 |         }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 |         Self.log.trace("Outgoing Payload", metadata: [
642 |             "opcode": "\(opcode)",
643 |             "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
    |                        |                               |- note: use 'String(describing:)' to silence this warning
    |                        |                               `- note: provide a default value to avoid this warning
    |                        `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 |             "seq": "\(seq ?? -1)"
645 |         ])
[1094/1095] Compiling DiscordKitCore Guild.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/DiscordKitConfig.swift:258:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
256 |         electronVersion: "13.6.6"
257 |     )
258 |     public static var `default` = Self()
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 | }
260 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:26:23: warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
24 |
25 |     /// Guilds
26 |     static public let guilds       = Self(rawValue: 1 << 0)
   |                       |- warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guilds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |     /// Guild members
28 |     ///
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:30:23: warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
28 |     ///
29 |     /// > Warning: This is a privileged intent
30 |     static public let guildMembers = Self(rawValue: 1 << 1)
   |                       |- warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guildMembers' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     /// Guild bans
32 |     static public let guildBans    = Self(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:32:23: warning: static property 'guildBans' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
30 |     static public let guildMembers = Self(rawValue: 1 << 1)
31 |     /// Guild bans
32 |     static public let guildBans    = Self(rawValue: 1 << 2)
   |                       |- warning: static property 'guildBans' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guildBans' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     /// Guild emote and stickers
34 |     static public let emoteSticker = Self(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:34:23: warning: static property 'emoteSticker' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
32 |     static public let guildBans    = Self(rawValue: 1 << 2)
33 |     /// Guild emote and stickers
34 |     static public let emoteSticker = Self(rawValue: 1 << 3)
   |                       |- warning: static property 'emoteSticker' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'emoteSticker' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |     /// Guild integrations
36 |     static public let integrations = Self(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:36:23: warning: static property 'integrations' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
34 |     static public let emoteSticker = Self(rawValue: 1 << 3)
35 |     /// Guild integrations
36 |     static public let integrations = Self(rawValue: 1 << 4)
   |                       |- warning: static property 'integrations' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'integrations' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |     /// Guild webhooks
38 |     static public let webhooks     = Self(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:38:23: warning: static property 'webhooks' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
36 |     static public let integrations = Self(rawValue: 1 << 4)
37 |     /// Guild webhooks
38 |     static public let webhooks     = Self(rawValue: 1 << 5)
   |                       |- warning: static property 'webhooks' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webhooks' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |     /// Guild invites
40 |     static public let guildInvites = Self(rawValue: 1 << 6)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:40:23: warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
38 |     static public let webhooks     = Self(rawValue: 1 << 5)
39 |     /// Guild invites
40 |     static public let guildInvites = Self(rawValue: 1 << 6)
   |                       |- warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guildInvites' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     /// Guild voice states
42 |     static public let voiceStates  = Self(rawValue: 1 << 7)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:42:23: warning: static property 'voiceStates' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
40 |     static public let guildInvites = Self(rawValue: 1 << 6)
41 |     /// Guild voice states
42 |     static public let voiceStates  = Self(rawValue: 1 << 7)
   |                       |- warning: static property 'voiceStates' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'voiceStates' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |     /// Guild presences
44 |     ///
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:46:23: warning: static property 'presences' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
44 |     ///
45 |     /// > Warning: This is a privileged intent
46 |     static public let presences    = Self(rawValue: 1 << 8)
   |                       |- warning: static property 'presences' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'presences' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |     /// Guild messages
48 |     static public let messages     = Self(rawValue: 1 << 9)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:48:23: warning: static property 'messages' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
46 |     static public let presences    = Self(rawValue: 1 << 8)
47 |     /// Guild messages
48 |     static public let messages     = Self(rawValue: 1 << 9)
   |                       |- warning: static property 'messages' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'messages' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |     /// Guild message reactions
50 |     static public let reactions    = Self(rawValue: 1 << 10)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:50:23: warning: static property 'reactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
48 |     static public let messages     = Self(rawValue: 1 << 9)
49 |     /// Guild message reactions
50 |     static public let reactions    = Self(rawValue: 1 << 10)
   |                       |- warning: static property 'reactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'reactions' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |     /// Guild message typing
52 |     static public let msgTyping    = Self(rawValue: 1 << 11)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:52:23: warning: static property 'msgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
50 |     static public let reactions    = Self(rawValue: 1 << 10)
51 |     /// Guild message typing
52 |     static public let msgTyping    = Self(rawValue: 1 << 11)
   |                       |- warning: static property 'msgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'msgTyping' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |     /// Direct messages
54 |     static public let directMsgs   = Self(rawValue: 1 << 12)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:54:23: warning: static property 'directMsgs' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
52 |     static public let msgTyping    = Self(rawValue: 1 << 11)
53 |     /// Direct messages
54 |     static public let directMsgs   = Self(rawValue: 1 << 12)
   |                       |- warning: static property 'directMsgs' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'directMsgs' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |     /// DM reactions
56 |     static public let dmReactions  = Self(rawValue: 1 << 13)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:56:23: warning: static property 'dmReactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
54 |     static public let directMsgs   = Self(rawValue: 1 << 12)
55 |     /// DM reactions
56 |     static public let dmReactions  = Self(rawValue: 1 << 13)
   |                       |- warning: static property 'dmReactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'dmReactions' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |     /// DM message typing
58 |     static public let dmMsgTyping  = Self(rawValue: 1 << 14)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:58:23: warning: static property 'dmMsgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
56 |     static public let dmReactions  = Self(rawValue: 1 << 13)
57 |     /// DM message typing
58 |     static public let dmMsgTyping  = Self(rawValue: 1 << 14)
   |                       |- warning: static property 'dmMsgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'dmMsgTyping' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |     /// Message content
60 |     ///
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:64:23: warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
62 |     /// is present for events that could contain message content fields.
63 |     /// > Warning: This is a privileged intent
64 |     static public let messageContent = Self(rawValue: 1 << 15)
   |                       |- warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'messageContent' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |     /// Guild scheduled events
66 |     static public let scheduledEvt = Self(rawValue: 1 << 16)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:66:23: warning: static property 'scheduledEvt' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
64 |     static public let messageContent = Self(rawValue: 1 << 15)
65 |     /// Guild scheduled events
66 |     static public let scheduledEvt = Self(rawValue: 1 << 16)
   |                       |- warning: static property 'scheduledEvt' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'scheduledEvt' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |     /// Auto moderation configuration
68 |     static public let autoModCfg   = Self(rawValue: 1 << 20)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:68:23: warning: static property 'autoModCfg' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
66 |     static public let scheduledEvt = Self(rawValue: 1 << 16)
67 |     /// Auto moderation configuration
68 |     static public let autoModCfg   = Self(rawValue: 1 << 20)
   |                       |- warning: static property 'autoModCfg' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'autoModCfg' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 |     /// Auto moderation execution
70 |     static public let autoModExec  = Self(rawValue: 1 << 20)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:70:23: warning: static property 'autoModExec' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
68 |     static public let autoModCfg   = Self(rawValue: 1 << 20)
69 |     /// Auto moderation execution
70 |     static public let autoModExec  = Self(rawValue: 1 << 20)
   |                       |- warning: static property 'autoModExec' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'autoModExec' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:72:23: warning: static property 'unprivileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
70 |     static public let autoModExec  = Self(rawValue: 1 << 20)
71 |
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
   |                       |- warning: static property 'unprivileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'unprivileged' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |     static public let privileged: Self = [.guildMembers, .presences, .messageContent]
74 |     static public let all: Self = [.unprivileged, .privileged]
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:73:23: warning: static property 'privileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
71 |
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
73 |     static public let privileged: Self = [.guildMembers, .presences, .messageContent]
   |                       |- warning: static property 'privileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'privileged' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 |     static public let all: Self = [.unprivileged, .privileged]
75 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:74:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
73 |     static public let privileged: Self = [.guildMembers, .presences, .messageContent]
74 |     static public let all: Self = [.unprivileged, .privileged]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | }
76 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
 43 | /// > underlyingly and is higher-level for more ease of use.
 44 | public class RobustWebSocket: NSObject {
    |              `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 45 |     // swiftlint:disable:previous type_body_length
 46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49: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
 47 |     /// An ``EventDispatch`` that is notified when an event dispatch
 48 |     /// is received from the Gateway
 49 |     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
 50 |
 51 |     /// 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:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 52 |     /// with an auth failure, or when the token is not present
 53 |     /// in the keychain
 54 |     public let onAuthFailure = EventDispatch<Void>()
    |                `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 55 |
 56 |     /// 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:59: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
 57 |     /// or reachability status changes. Event is notified with
 58 |     /// a (sessionOpen: Bool, reachable: Bool) tuple.
 59 |     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
 60 |
 61 |     /// An ``EventDispatch`` that is notified when the session cannot be
/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:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 63 |     /// long and the session is invalidated. A fresh reconnection will
 64 |     /// be attempted if/when this happens.
 65 |     public let onSessionInvalid = EventDispatch<Void>()
    |                `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 66 |
 67 |     private var session: URLSession!, decompressor: DecompressionEngine!
/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:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
 65 |     public let onSessionInvalid = EventDispatch<Void>()
 66 |
 67 |     private var session: URLSession!, decompressor: DecompressionEngine!
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
 68 |
 69 |     #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 |         socket = WebSocket()
273 |         do {
274 |             try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
    |             `- warning: no calls to throwing functions occur within 'try' expression
275 |         } catch {
276 |             Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 |         do {
274 |             try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 |             Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 |         }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 |         Self.log.trace("Outgoing Payload", metadata: [
642 |             "opcode": "\(opcode)",
643 |             "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
    |                        |                               |- note: use 'String(describing:)' to silence this warning
    |                        |                               `- note: provide a default value to avoid this warning
    |                        `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 |             "seq": "\(seq ?? -1)"
645 |         ])
[1095/1095] Compiling DiscordKitCore Integration.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/DiscordKitConfig.swift:258:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
256 |         electronVersion: "13.6.6"
257 |     )
258 |     public static var `default` = Self()
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 | }
260 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:26:23: warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
24 |
25 |     /// Guilds
26 |     static public let guilds       = Self(rawValue: 1 << 0)
   |                       |- warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guilds' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |     /// Guild members
28 |     ///
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:30:23: warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
28 |     ///
29 |     /// > Warning: This is a privileged intent
30 |     static public let guildMembers = Self(rawValue: 1 << 1)
   |                       |- warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guildMembers' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |     /// Guild bans
32 |     static public let guildBans    = Self(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:32:23: warning: static property 'guildBans' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
30 |     static public let guildMembers = Self(rawValue: 1 << 1)
31 |     /// Guild bans
32 |     static public let guildBans    = Self(rawValue: 1 << 2)
   |                       |- warning: static property 'guildBans' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guildBans' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |     /// Guild emote and stickers
34 |     static public let emoteSticker = Self(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:34:23: warning: static property 'emoteSticker' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
32 |     static public let guildBans    = Self(rawValue: 1 << 2)
33 |     /// Guild emote and stickers
34 |     static public let emoteSticker = Self(rawValue: 1 << 3)
   |                       |- warning: static property 'emoteSticker' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'emoteSticker' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |     /// Guild integrations
36 |     static public let integrations = Self(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:36:23: warning: static property 'integrations' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
34 |     static public let emoteSticker = Self(rawValue: 1 << 3)
35 |     /// Guild integrations
36 |     static public let integrations = Self(rawValue: 1 << 4)
   |                       |- warning: static property 'integrations' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'integrations' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |     /// Guild webhooks
38 |     static public let webhooks     = Self(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:38:23: warning: static property 'webhooks' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
36 |     static public let integrations = Self(rawValue: 1 << 4)
37 |     /// Guild webhooks
38 |     static public let webhooks     = Self(rawValue: 1 << 5)
   |                       |- warning: static property 'webhooks' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webhooks' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |     /// Guild invites
40 |     static public let guildInvites = Self(rawValue: 1 << 6)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:40:23: warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
38 |     static public let webhooks     = Self(rawValue: 1 << 5)
39 |     /// Guild invites
40 |     static public let guildInvites = Self(rawValue: 1 << 6)
   |                       |- warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'guildInvites' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 |     /// Guild voice states
42 |     static public let voiceStates  = Self(rawValue: 1 << 7)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:42:23: warning: static property 'voiceStates' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
40 |     static public let guildInvites = Self(rawValue: 1 << 6)
41 |     /// Guild voice states
42 |     static public let voiceStates  = Self(rawValue: 1 << 7)
   |                       |- warning: static property 'voiceStates' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'voiceStates' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |     /// Guild presences
44 |     ///
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:46:23: warning: static property 'presences' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
44 |     ///
45 |     /// > Warning: This is a privileged intent
46 |     static public let presences    = Self(rawValue: 1 << 8)
   |                       |- warning: static property 'presences' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'presences' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |     /// Guild messages
48 |     static public let messages     = Self(rawValue: 1 << 9)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:48:23: warning: static property 'messages' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
46 |     static public let presences    = Self(rawValue: 1 << 8)
47 |     /// Guild messages
48 |     static public let messages     = Self(rawValue: 1 << 9)
   |                       |- warning: static property 'messages' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'messages' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |     /// Guild message reactions
50 |     static public let reactions    = Self(rawValue: 1 << 10)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:50:23: warning: static property 'reactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
48 |     static public let messages     = Self(rawValue: 1 << 9)
49 |     /// Guild message reactions
50 |     static public let reactions    = Self(rawValue: 1 << 10)
   |                       |- warning: static property 'reactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'reactions' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |     /// Guild message typing
52 |     static public let msgTyping    = Self(rawValue: 1 << 11)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:52:23: warning: static property 'msgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
50 |     static public let reactions    = Self(rawValue: 1 << 10)
51 |     /// Guild message typing
52 |     static public let msgTyping    = Self(rawValue: 1 << 11)
   |                       |- warning: static property 'msgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'msgTyping' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |     /// Direct messages
54 |     static public let directMsgs   = Self(rawValue: 1 << 12)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:54:23: warning: static property 'directMsgs' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
52 |     static public let msgTyping    = Self(rawValue: 1 << 11)
53 |     /// Direct messages
54 |     static public let directMsgs   = Self(rawValue: 1 << 12)
   |                       |- warning: static property 'directMsgs' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'directMsgs' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |     /// DM reactions
56 |     static public let dmReactions  = Self(rawValue: 1 << 13)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:56:23: warning: static property 'dmReactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
54 |     static public let directMsgs   = Self(rawValue: 1 << 12)
55 |     /// DM reactions
56 |     static public let dmReactions  = Self(rawValue: 1 << 13)
   |                       |- warning: static property 'dmReactions' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'dmReactions' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |     /// DM message typing
58 |     static public let dmMsgTyping  = Self(rawValue: 1 << 14)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:58:23: warning: static property 'dmMsgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
56 |     static public let dmReactions  = Self(rawValue: 1 << 13)
57 |     /// DM message typing
58 |     static public let dmMsgTyping  = Self(rawValue: 1 << 14)
   |                       |- warning: static property 'dmMsgTyping' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'dmMsgTyping' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |     /// Message content
60 |     ///
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:64:23: warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
62 |     /// is present for events that could contain message content fields.
63 |     /// > Warning: This is a privileged intent
64 |     static public let messageContent = Self(rawValue: 1 << 15)
   |                       |- warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'messageContent' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |     /// Guild scheduled events
66 |     static public let scheduledEvt = Self(rawValue: 1 << 16)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:66:23: warning: static property 'scheduledEvt' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
64 |     static public let messageContent = Self(rawValue: 1 << 15)
65 |     /// Guild scheduled events
66 |     static public let scheduledEvt = Self(rawValue: 1 << 16)
   |                       |- warning: static property 'scheduledEvt' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'scheduledEvt' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |     /// Auto moderation configuration
68 |     static public let autoModCfg   = Self(rawValue: 1 << 20)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:68:23: warning: static property 'autoModCfg' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
66 |     static public let scheduledEvt = Self(rawValue: 1 << 16)
67 |     /// Auto moderation configuration
68 |     static public let autoModCfg   = Self(rawValue: 1 << 20)
   |                       |- warning: static property 'autoModCfg' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'autoModCfg' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 |     /// Auto moderation execution
70 |     static public let autoModExec  = Self(rawValue: 1 << 20)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:70:23: warning: static property 'autoModExec' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
68 |     static public let autoModCfg   = Self(rawValue: 1 << 20)
69 |     /// Auto moderation execution
70 |     static public let autoModExec  = Self(rawValue: 1 << 20)
   |                       |- warning: static property 'autoModExec' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'autoModExec' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:72:23: warning: static property 'unprivileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
70 |     static public let autoModExec  = Self(rawValue: 1 << 20)
71 |
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
   |                       |- warning: static property 'unprivileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'unprivileged' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |     static public let privileged: Self = [.guildMembers, .presences, .messageContent]
74 |     static public let all: Self = [.unprivileged, .privileged]
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:73:23: warning: static property 'privileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
71 |
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
73 |     static public let privileged: Self = [.guildMembers, .presences, .messageContent]
   |                       |- warning: static property 'privileged' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'privileged' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
74 |     static public let all: Self = [.unprivileged, .privileged]
75 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/Intents.swift:74:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 | ///
13 | public struct Intents: OptionSet, Encodable {
   |               `- note: consider making struct 'Intents' conform to the 'Sendable' protocol
14 |     public let rawValue: Int
15 |
   :
72 |     static public let unprivileged: Self = [.guilds, .guildBans, .emoteSticker, .integrations, .webhooks, .guildInvites, .voiceStates, .messages, .reactions, .msgTyping, .directMsgs, .dmReactions, .dmMsgTyping, .scheduledEvt, .autoModCfg, .autoModExec]
73 |     static public let privileged: Self = [.guildMembers, .presences, .messageContent]
74 |     static public let all: Self = [.unprivileged, .privileged]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Intents' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | }
76 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
 43 | /// > underlyingly and is higher-level for more ease of use.
 44 | public class RobustWebSocket: NSObject {
    |              `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 45 |     // swiftlint:disable:previous type_body_length
 46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49: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
 47 |     /// An ``EventDispatch`` that is notified when an event dispatch
 48 |     /// is received from the Gateway
 49 |     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
 50 |
 51 |     /// 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:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 52 |     /// with an auth failure, or when the token is not present
 53 |     /// in the keychain
 54 |     public let onAuthFailure = EventDispatch<Void>()
    |                `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 55 |
 56 |     /// 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:59: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
 57 |     /// or reachability status changes. Event is notified with
 58 |     /// a (sessionOpen: Bool, reachable: Bool) tuple.
 59 |     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
 60 |
 61 |     /// An ``EventDispatch`` that is notified when the session cannot be
/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:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 63 |     /// long and the session is invalidated. A fresh reconnection will
 64 |     /// be attempted if/when this happens.
 65 |     public let onSessionInvalid = EventDispatch<Void>()
    |                `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
 66 |
 67 |     private var session: URLSession!, decompressor: DecompressionEngine!
/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:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
 65 |     public let onSessionInvalid = EventDispatch<Void>()
 66 |
 67 |     private var session: URLSession!, decompressor: DecompressionEngine!
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
 68 |
 69 |     #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 |         socket = WebSocket()
273 |         do {
274 |             try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
    |             `- warning: no calls to throwing functions occur within 'try' expression
275 |         } catch {
276 |             Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 |         do {
274 |             try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 |             Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 |         }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 |         Self.log.trace("Outgoing Payload", metadata: [
642 |             "opcode": "\(opcode)",
643 |             "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
    |                        |                               |- note: use 'String(describing:)' to silence this warning
    |                        |                               `- note: provide a default value to avoid this warning
    |                        `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 |             "seq": "\(seq ?? -1)"
645 |         ])
[1097/1139] Emitting module DiscordKitBot
[1098/1141] Compiling DiscordKit UserSettingsProtoUpdate.swift
[1099/1141] Compiling DiscordKit APIUser+.swift
[1100/1141] Compiling DiscordKit DiscordProtos.pb.swift
[1101/1141] Compiling DiscordKit Presence+.swift
[1102/1141] Compiling DiscordKit DiscordGateway.swift
[1103/1141] Compiling DiscordKit GatewayCachedState.swift
[1104/1141] Compiling DiscordKitBot BotEmbed.swift
[1105/1141] Compiling DiscordKitBot BotEmbedBuilder.swift
[1106/1141] Compiling DiscordKitBot EmbedFieldBuilder.swift
[1107/1141] Compiling DiscordKitBot ActionRow.swift
[1108/1141] Compiling DiscordKitBot Button.swift
[1109/1141] Compiling DiscordKitBot ComponentBuilder.swift
[1110/1141] Compiling DiscordKit TextAndImages.pb.swift
/host/spi-builder-workspace/Sources/DiscordKitBot/NCWrapper.swift:28:13: warning: capture of 'listener' with non-sendable type '(Data) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |         _ = notificationCenter.addObserver(forName: name, object: nil, queue: nil) { notif in
27 |             guard let obj = notif.object as? Data else { return }
28 |             listener(obj)
   |             |- warning: capture of 'listener' with non-sendable type '(Data) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
29 |         }
30 |     }
/host/spi-builder-workspace/Sources/DiscordKitBot/NCWrapper.swift:33:31: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 |
32 |     public func listen(listener: @escaping (Data) async -> Void) {
33 |         listen { data in Task { await listener(data) } }
   |                               |       `- note: closure captures 'listener' which is accessible to code in the current task
   |                               `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 |     }
35 | }
[1111/1141] Compiling DiscordKit UserContent.pb.swift
/host/spi-builder-workspace/Sources/DiscordKitBot/NCWrapper.swift:28:13: warning: capture of 'listener' with non-sendable type '(Data) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |         _ = notificationCenter.addObserver(forName: name, object: nil, queue: nil) { notif in
27 |             guard let obj = notif.object as? Data else { return }
28 |             listener(obj)
   |             |- warning: capture of 'listener' with non-sendable type '(Data) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
29 |         }
30 |     }
/host/spi-builder-workspace/Sources/DiscordKitBot/NCWrapper.swift:33:31: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 |
32 |     public func listen(listener: @escaping (Data) async -> Void) {
33 |         listen { data in Task { await listener(data) } }
   |                               |       `- note: closure captures 'listener' which is accessible to code in the current task
   |                               `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 |     }
35 | }
[1112/1141] Compiling DiscordKitBot InteractionResponse.swift
/host/spi-builder-workspace/Sources/DiscordKitBot/NCWrapper.swift:28:13: warning: capture of 'listener' with non-sendable type '(Data) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |         _ = notificationCenter.addObserver(forName: name, object: nil, queue: nil) { notif in
27 |             guard let obj = notif.object as? Data else { return }
28 |             listener(obj)
   |             |- warning: capture of 'listener' with non-sendable type '(Data) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
29 |         }
30 |     }
/host/spi-builder-workspace/Sources/DiscordKitBot/NCWrapper.swift:33:31: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 |
32 |     public func listen(listener: @escaping (Data) async -> Void) {
33 |         listen { data in Task { await listener(data) } }
   |                               |       `- note: closure captures 'listener' which is accessible to code in the current task
   |                               `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 |     }
35 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/Sources/DiscordKit/protos/DiscordProtos.pb.swift:243:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
223 |   ]
224 |
225 |   fileprivate class _StorageClass {
    |                     `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
226 |     var _versions: Discord_UserSettings.Versions? = nil
227 |     var _inbox: InboxSettings? = nil
    :
241 |     var _audioContextSettings: AudioSettings? = nil
242 |
243 |     static let defaultInstance = _StorageClass()
    |                |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 |     private init() {}
/host/spi-builder-workspace/Sources/DiscordKit/protos/DiscordProtos.pb.swift:243:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
223 |   ]
224 |
225 |   fileprivate class _StorageClass {
    |                     `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
226 |     var _versions: Discord_UserSettings.Versions? = nil
227 |     var _inbox: InboxSettings? = nil
    :
241 |     var _audioContextSettings: AudioSettings? = nil
242 |
243 |     static let defaultInstance = _StorageClass()
    |                |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 |     private init() {}
/host/spi-builder-workspace/Sources/DiscordKit/protos/DiscordProtos.pb.swift:243:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
223 |   ]
224 |
225 |   fileprivate class _StorageClass {
    |                     `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
226 |     var _versions: Discord_UserSettings.Versions? = nil
227 |     var _inbox: InboxSettings? = nil
    :
241 |     var _audioContextSettings: AudioSettings? = nil
242 |
243 |     static let defaultInstance = _StorageClass()
    |                |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 |     private init() {}
[1116/1141] Emitting module DiscordKit
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
 42 |     /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
 43 |     /// > stale UI issues (i.e. stale UI)
 44 |     @Published public var cache: CachedState = CachedState()
    |      `- error: unknown attribute 'Published'
 45 |
 46 |     /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
 47 |     ///
 48 |     /// Contains a dict of user presences, keyed by their respective user IDs
 49 |     @Published public var presences: [Snowflake: Presence] = [:]
    |      `- error: unknown attribute 'Published'
 50 |
 51 |     /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
 50 |
 51 |     /// An array of guild folders
 52 |     @Published public var guildFolders: [GuildFolderItem] = []
    |      `- error: unknown attribute 'Published'
 53 |
 54 |     /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
 55 |     ///
 56 |     /// Includes both single DMs and group DMs
 57 |     @Published public var privateChannels: [Channel] = []
    |      `- error: unknown attribute 'Published'
 58 |
 59 |     /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
 58 |
 59 |     /// Read state
 60 |     @Published public var readState: [Snowflake: ReadState.Entry] = [:]
    |      `- error: unknown attribute 'Published'
 61 |
 62 |     private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
 67 |     ///
 68 |     /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
 69 |     @Published public var connected = false
    |      `- error: unknown attribute 'Published'
 70 |     /// If the network is reachable (has network connectivity)
 71 |     ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
 71 |     ///
 72 |     /// `@Published` proxy of ``RobustWebSocket/reachable``
 73 |     @Published public var reachable = false
    |      `- error: unknown attribute 'Published'
 74 |
 75 |     // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
 18 | ///
 19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
 20 | public class DiscordGateway: ObservableObject {
    |                              `- error: cannot find type 'ObservableObject' in scope
 21 |     // Events
 22 |     /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
 16 |     ///
 17 |     /// > The guild's ID is its key
 18 |     @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
    |      `- error: unknown attribute 'Published'
 19 |
 20 |     @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
 18 |     @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
 19 |
 20 |     @Published public private(set) var members: [Snowflake: Member] = [:]
    |      `- error: unknown attribute 'Published'
 21 |
 22 |     /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
 21 |
 22 |     /// DM channels the user is in
 23 |     @Published public private(set) var dms: [Channel] = []
    |      `- error: unknown attribute 'Published'
 24 |
 25 |     /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
 24 |
 25 |     /// Cached object of current user
 26 |     @Published public private(set) var user: CurrentUser?
    |      `- error: unknown attribute 'Published'
 27 |
 28 |     /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
 28 |     /// Cached users, initially populated from `READY` event and might
 29 |     /// grow over time
 30 |     @Published public private(set) var users: [Snowflake: User] = [:]
    |      `- error: unknown attribute 'Published'
 31 |
 32 |     /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
 12 | ///
 13 | /// Used in ``DiscordGateway/cache``.
 14 | public class CachedState: ObservableObject {
    |                           `- error: cannot find type 'ObservableObject' in scope
 15 |     /// Dictionary of guilds the user is in
 16 |     ///
/host/spi-builder-workspace/Sources/DiscordKit/protos/DiscordProtos.pb.swift:243:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
223 |   ]
224 |
225 |   fileprivate class _StorageClass {
    |                     `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
226 |     var _versions: Discord_UserSettings.Versions? = nil
227 |     var _inbox: InboxSettings? = nil
    :
241 |     var _audioContextSettings: AudioSettings? = nil
242 |
243 |     static let defaultInstance = _StorageClass()
    |                |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 |     private init() {}
/host/spi-builder-workspace/Sources/DiscordKit/protos/FavoriteChannel.pb.swift:58:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 | extension FavoriteChannelType: CaseIterable {
 57 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 58 |   public static var allCases: [FavoriteChannelType] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |     .unsetFavoriteChannelType,
 60 |     .referenceOriginal,
/host/spi-builder-workspace/Sources/DiscordKit/protos/FavoriteGIFs.pb.swift:58:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 | extension GIFType: CaseIterable {
 57 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 58 |   public static var allCases: [GIFType] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |     .none,
 60 |     .image,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Appearance.pb.swift:59:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 57 | extension Theme: CaseIterable {
 58 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 59 |   public static var allCases: [Theme] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |     .unset,
 61 |     .dark,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Inbox.pb.swift:62:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 60 | extension InboxTab: CaseIterable {
 61 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 62 |   public static var allCases: [InboxTab] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |     .unspecified,
 64 |     .mentions,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Privacy.pb.swift:57:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 | extension GuildActivityStatusRestrictionDefault: CaseIterable {
 56 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 57 |   public static var allCases: [GuildActivityStatusRestrictionDefault] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |     .off,
 59 |     .onForLargeGuilds,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/TextAndImages.pb.swift:295:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'TextAndImagesSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
268 |   ]
269 |
270 |   fileprivate class _StorageClass {
    |                     `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
271 |     var _diversitySurrogate: SwiftProtobuf.Google_Protobuf_StringValue? = nil
272 |     var _useRichChatInput: SwiftProtobuf.Google_Protobuf_BoolValue? = nil
    :
293 |     var _useLegacyChatInput: SwiftProtobuf.Google_Protobuf_BoolValue? = nil
294 |
295 |     static let defaultInstance = _StorageClass()
    |                |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'TextAndImagesSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
296 |
297 |     private init() {}
[1117/1143] Compiling DiscordKitBot NumberOption.swift
[1118/1143] Compiling DiscordKitBot OptionBuilder.swift
[1119/1143] Compiling DiscordKitBot StringOption.swift
[1120/1143] Compiling DiscordKitBot SubCommand.swift
/host/spi-builder-workspace/Sources/DiscordKitBot/Client.swift:46:26: warning: reference to static property 'default' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 44 |         self.intents = intents
 45 |         // Override default config for bots
 46 |         DiscordKitConfig.default = .init(
    |                          `- warning: reference to static property 'default' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 47 |             properties: .init(browser: DiscordKitConfig.libraryName, device: DiscordKitConfig.libraryName),
 48 |             intents: intents
/host/spi-builder-workspace/Sources/DiscordKitCore/DiscordKitConfig.swift:258:23: note: static property declared here
256 |         electronVersion: "13.6.6"
257 |     )
258 |     public static var `default` = Self()
    |                       `- note: static property declared here
259 | }
260 |
/host/spi-builder-workspace/Sources/DiscordKitBot/Client.swift:114:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
112 |         if let handler = appCommandHandlers[commandData.id] {
113 |             Self.logger.trace("Invoking application handler", metadata: ["command.name": "\(commandData.name)"])
114 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
115 |                 await handler(.init(
116 |                     optionValues: commandData.options ?? [],
117 |                     rest: rest, applicationID: applicationID!, interactionID: id, token: token
    |                           `- note: closure captures 'self' which is accessible to code in the current task
118 |                 ))
119 |             }
[1121/1143] Compiling DiscordKitBot BotMessage.swift
/host/spi-builder-workspace/Sources/DiscordKitBot/Client.swift:46:26: warning: reference to static property 'default' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 44 |         self.intents = intents
 45 |         // Override default config for bots
 46 |         DiscordKitConfig.default = .init(
    |                          `- warning: reference to static property 'default' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 47 |             properties: .init(browser: DiscordKitConfig.libraryName, device: DiscordKitConfig.libraryName),
 48 |             intents: intents
/host/spi-builder-workspace/Sources/DiscordKitCore/DiscordKitConfig.swift:258:23: note: static property declared here
256 |         electronVersion: "13.6.6"
257 |     )
258 |     public static var `default` = Self()
    |                       `- note: static property declared here
259 | }
260 |
/host/spi-builder-workspace/Sources/DiscordKitBot/Client.swift:114:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
112 |         if let handler = appCommandHandlers[commandData.id] {
113 |             Self.logger.trace("Invoking application handler", metadata: ["command.name": "\(commandData.name)"])
114 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
115 |                 await handler(.init(
116 |                     optionValues: commandData.options ?? [],
117 |                     rest: rest, applicationID: applicationID!, interactionID: id, token: token
    |                           `- note: closure captures 'self' which is accessible to code in the current task
118 |                 ))
119 |             }
[1122/1143] Compiling DiscordKitBot Client.swift
/host/spi-builder-workspace/Sources/DiscordKitBot/Client.swift:46:26: warning: reference to static property 'default' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 44 |         self.intents = intents
 45 |         // Override default config for bots
 46 |         DiscordKitConfig.default = .init(
    |                          `- warning: reference to static property 'default' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 47 |             properties: .init(browser: DiscordKitConfig.libraryName, device: DiscordKitConfig.libraryName),
 48 |             intents: intents
/host/spi-builder-workspace/Sources/DiscordKitCore/DiscordKitConfig.swift:258:23: note: static property declared here
256 |         electronVersion: "13.6.6"
257 |     )
258 |     public static var `default` = Self()
    |                       `- note: static property declared here
259 | }
260 |
/host/spi-builder-workspace/Sources/DiscordKitBot/Client.swift:114:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
112 |         if let handler = appCommandHandlers[commandData.id] {
113 |             Self.logger.trace("Invoking application handler", metadata: ["command.name": "\(commandData.name)"])
114 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
115 |                 await handler(.init(
116 |                     optionValues: commandData.options ?? [],
117 |                     rest: rest, applicationID: applicationID!, interactionID: id, token: token
    |                           `- note: closure captures 'self' which is accessible to code in the current task
118 |                 ))
119 |             }
[1123/1143] Compiling DiscordKit Status.pb.swift
[1124/1143] Compiling DiscordKitBot APICommand.swift
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
 42 |     /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
 43 |     /// > stale UI issues (i.e. stale UI)
 44 |     @Published public var cache: CachedState = CachedState()
    |      `- error: unknown attribute 'Published'
 45 |
 46 |     /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
 47 |     ///
 48 |     /// Contains a dict of user presences, keyed by their respective user IDs
 49 |     @Published public var presences: [Snowflake: Presence] = [:]
    |      `- error: unknown attribute 'Published'
 50 |
 51 |     /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
 50 |
 51 |     /// An array of guild folders
 52 |     @Published public var guildFolders: [GuildFolderItem] = []
    |      `- error: unknown attribute 'Published'
 53 |
 54 |     /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
 55 |     ///
 56 |     /// Includes both single DMs and group DMs
 57 |     @Published public var privateChannels: [Channel] = []
    |      `- error: unknown attribute 'Published'
 58 |
 59 |     /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
 58 |
 59 |     /// Read state
 60 |     @Published public var readState: [Snowflake: ReadState.Entry] = [:]
    |      `- error: unknown attribute 'Published'
 61 |
 62 |     private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
 67 |     ///
 68 |     /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
 69 |     @Published public var connected = false
    |      `- error: unknown attribute 'Published'
 70 |     /// If the network is reachable (has network connectivity)
 71 |     ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
 71 |     ///
 72 |     /// `@Published` proxy of ``RobustWebSocket/reachable``
 73 |     @Published public var reachable = false
    |      `- error: unknown attribute 'Published'
 74 |
 75 |     // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
 18 | ///
 19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
 20 | public class DiscordGateway: ObservableObject {
    |                              `- error: cannot find type 'ObservableObject' in scope
 21 |     // Events
 22 |     /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:112:15: error: value of type 'CachedState' has no member 'objectWillChange'
110 |         // Clear cache
111 |         cache = CachedState()
112 |         cache.objectWillChange.send()
    |               `- error: value of type 'CachedState' has no member 'objectWillChange'
113 |         socket?.close(code: .normalClosure)
114 |     }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
194 |
195 |     private func handleGuildUpdate(_ updatedGuild: Guild) {
196 |         guard let existingGuild = cache.guilds[updatedGuild.id] else {
    |                   `- warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
197 |             return
198 |         }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:200:13: warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
198 |         }
199 |
200 |         var modifiedGuild = updatedGuild
    |             `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
201 |
202 |         // ``GatewayEvent.guildUpdate`` events are missing data that is only present in the initial ``GatewayEvent.ready`` event, so we need to copy those properties over manually.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:221:28: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
219 |         let settings: Discord_UserSettings
220 |         do {
221 |             settings = try Discord_UserSettings(serializedData: Data(base64Encoded: proto)!)
    |                            |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
    |                            `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
222 |         } catch {
223 |             log.error("Proto decode error! \(String(describing: error))")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:303:15: error: value of type 'CachedState' has no member 'objectWillChange'
301 |         }
302 |
303 |         cache.objectWillChange.send()
    |               `- error: value of type 'CachedState' has no member 'objectWillChange'
304 |         onEvent.notify(event: data)
305 |         log.trace("[EVENT] Dispatched event")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
 16 |     ///
 17 |     /// > The guild's ID is its key
 18 |     @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
    |      `- error: unknown attribute 'Published'
 19 |
 20 |     @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
 18 |     @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
 19 |
 20 |     @Published public private(set) var members: [Snowflake: Member] = [:]
    |      `- error: unknown attribute 'Published'
 21 |
 22 |     /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
 21 |
 22 |     /// DM channels the user is in
 23 |     @Published public private(set) var dms: [Channel] = []
    |      `- error: unknown attribute 'Published'
 24 |
 25 |     /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
 24 |
 25 |     /// Cached object of current user
 26 |     @Published public private(set) var user: CurrentUser?
    |      `- error: unknown attribute 'Published'
 27 |
 28 |     /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
 28 |     /// Cached users, initially populated from `READY` event and might
 29 |     /// grow over time
 30 |     @Published public private(set) var users: [Snowflake: User] = [:]
    |      `- error: unknown attribute 'Published'
 31 |
 32 |     /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
 12 | ///
 13 | /// Used in ``DiscordGateway/cache``.
 14 | public class CachedState: ObservableObject {
    |                           `- error: cannot find type 'ObservableObject' in scope
 15 |     /// Dictionary of guilds the user is in
 16 |     ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:35:22: error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
 33 |     /// - Parameter event: An incoming Gateway "ready" event.
 34 |     func configure(using event: ReadyEvt) {
 35 |         event.guilds.forEach(appendOrReplace(_:))
    |                      `- error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
 36 |         dms = event.private_channels
 37 |         user = event.user
    :
 47 |     /// Updates or appends the provided guild.
 48 |     /// - Parameter guild: The guild you want to update or append to the cache.
 49 |     func appendOrReplace(_ guild: PreloadedGuild) {
    |          `- note: found candidate with type '(PreloadedGuild) -> ()'
 50 |         guilds.updateValue(guild, forKey: guild.id)
 51 |     }
    :
100 |     /// Appends or replaces  the given message within the appropriate channel.
101 |     /// - Parameter message: The message to append.
102 |     func appendOrReplace(_ message: Message) {
    |          `- note: found candidate with type '(Message) -> ()'
103 |         if let idx = dms.firstIndex(where: { $0.id == message.channel_id }) {
104 |             dms[idx].last_message_id = message.id
    :
110 |     /// Appends or replaces the provided user in the cache.
111 |     /// - Parameter user: The user to cache.
112 |     func appendOrReplace(_ user: User) {
    |          `- note: found candidate with type '(User) -> ()'
113 |         users.updateValue(user, forKey: user.id)
114 |     }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:36:13: error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
 34 |     func configure(using event: ReadyEvt) {
 35 |         event.guilds.forEach(appendOrReplace(_:))
 36 |         dms = event.private_channels
    |             |- error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
    |             `- note: arguments to generic parameter 'Element' ('DecodeThrowable<Channel>' and 'Channel') are expected to be equal
 37 |         user = event.user
 38 |         event.users.forEach(appendOrReplace(_:))
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:40:39: error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
 38 |         event.users.forEach(appendOrReplace(_:))
 39 |         event.merged_members.enumerated().forEach { (idx, guildMembers) in
 40 |             members[event.guilds[idx].id] = guildMembers.first(where: { $0.user_id == event.user.id })
    |                                       `- error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
 41 |         }
 42 |         print(members)
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
 62 |     /// - Parameter channel: The channel to append.
 63 |     func append(_ channel: Channel) {
 64 |         guard let identifier = channel.guild_id else {
    |                   `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
 65 |             return
 66 |         }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
 72 |     /// - Parameter channel: The channel to remove.
 73 |     func remove(_ channel: Channel) {
 74 |         guard let identifier = channel.guild_id else {
    |                   `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
 75 |             return
 76 |         }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
 42 |     /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
 43 |     /// > stale UI issues (i.e. stale UI)
 44 |     @Published public var cache: CachedState = CachedState()
    |      `- error: unknown attribute 'Published'
 45 |
 46 |     /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
 47 |     ///
 48 |     /// Contains a dict of user presences, keyed by their respective user IDs
 49 |     @Published public var presences: [Snowflake: Presence] = [:]
    |      `- error: unknown attribute 'Published'
 50 |
 51 |     /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
 50 |
 51 |     /// An array of guild folders
 52 |     @Published public var guildFolders: [GuildFolderItem] = []
    |      `- error: unknown attribute 'Published'
 53 |
 54 |     /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
 55 |     ///
 56 |     /// Includes both single DMs and group DMs
 57 |     @Published public var privateChannels: [Channel] = []
    |      `- error: unknown attribute 'Published'
 58 |
 59 |     /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
 58 |
 59 |     /// Read state
 60 |     @Published public var readState: [Snowflake: ReadState.Entry] = [:]
    |      `- error: unknown attribute 'Published'
 61 |
 62 |     private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
 67 |     ///
 68 |     /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
 69 |     @Published public var connected = false
    |      `- error: unknown attribute 'Published'
 70 |     /// If the network is reachable (has network connectivity)
 71 |     ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
 71 |     ///
 72 |     /// `@Published` proxy of ``RobustWebSocket/reachable``
 73 |     @Published public var reachable = false
    |      `- error: unknown attribute 'Published'
 74 |
 75 |     // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
 18 | ///
 19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
 20 | public class DiscordGateway: ObservableObject {
    |                              `- error: cannot find type 'ObservableObject' in scope
 21 |     // Events
 22 |     /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:112:15: error: value of type 'CachedState' has no member 'objectWillChange'
110 |         // Clear cache
111 |         cache = CachedState()
112 |         cache.objectWillChange.send()
    |               `- error: value of type 'CachedState' has no member 'objectWillChange'
113 |         socket?.close(code: .normalClosure)
114 |     }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
194 |
195 |     private func handleGuildUpdate(_ updatedGuild: Guild) {
196 |         guard let existingGuild = cache.guilds[updatedGuild.id] else {
    |                   `- warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
197 |             return
198 |         }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:200:13: warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
198 |         }
199 |
200 |         var modifiedGuild = updatedGuild
    |             `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
201 |
202 |         // ``GatewayEvent.guildUpdate`` events are missing data that is only present in the initial ``GatewayEvent.ready`` event, so we need to copy those properties over manually.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:221:28: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
219 |         let settings: Discord_UserSettings
220 |         do {
221 |             settings = try Discord_UserSettings(serializedData: Data(base64Encoded: proto)!)
    |                            |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
    |                            `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
222 |         } catch {
223 |             log.error("Proto decode error! \(String(describing: error))")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:303:15: error: value of type 'CachedState' has no member 'objectWillChange'
301 |         }
302 |
303 |         cache.objectWillChange.send()
    |               `- error: value of type 'CachedState' has no member 'objectWillChange'
304 |         onEvent.notify(event: data)
305 |         log.trace("[EVENT] Dispatched event")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
 16 |     ///
 17 |     /// > The guild's ID is its key
 18 |     @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
    |      `- error: unknown attribute 'Published'
 19 |
 20 |     @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
 18 |     @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
 19 |
 20 |     @Published public private(set) var members: [Snowflake: Member] = [:]
    |      `- error: unknown attribute 'Published'
 21 |
 22 |     /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
 21 |
 22 |     /// DM channels the user is in
 23 |     @Published public private(set) var dms: [Channel] = []
    |      `- error: unknown attribute 'Published'
 24 |
 25 |     /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
 24 |
 25 |     /// Cached object of current user
 26 |     @Published public private(set) var user: CurrentUser?
    |      `- error: unknown attribute 'Published'
 27 |
 28 |     /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
 28 |     /// Cached users, initially populated from `READY` event and might
 29 |     /// grow over time
 30 |     @Published public private(set) var users: [Snowflake: User] = [:]
    |      `- error: unknown attribute 'Published'
 31 |
 32 |     /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
 12 | ///
 13 | /// Used in ``DiscordGateway/cache``.
 14 | public class CachedState: ObservableObject {
    |                           `- error: cannot find type 'ObservableObject' in scope
 15 |     /// Dictionary of guilds the user is in
 16 |     ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:35:22: error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
 33 |     /// - Parameter event: An incoming Gateway "ready" event.
 34 |     func configure(using event: ReadyEvt) {
 35 |         event.guilds.forEach(appendOrReplace(_:))
    |                      `- error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
 36 |         dms = event.private_channels
 37 |         user = event.user
    :
 47 |     /// Updates or appends the provided guild.
 48 |     /// - Parameter guild: The guild you want to update or append to the cache.
 49 |     func appendOrReplace(_ guild: PreloadedGuild) {
    |          `- note: found candidate with type '(PreloadedGuild) -> ()'
 50 |         guilds.updateValue(guild, forKey: guild.id)
 51 |     }
    :
100 |     /// Appends or replaces  the given message within the appropriate channel.
101 |     /// - Parameter message: The message to append.
102 |     func appendOrReplace(_ message: Message) {
    |          `- note: found candidate with type '(Message) -> ()'
103 |         if let idx = dms.firstIndex(where: { $0.id == message.channel_id }) {
104 |             dms[idx].last_message_id = message.id
    :
110 |     /// Appends or replaces the provided user in the cache.
111 |     /// - Parameter user: The user to cache.
112 |     func appendOrReplace(_ user: User) {
    |          `- note: found candidate with type '(User) -> ()'
113 |         users.updateValue(user, forKey: user.id)
114 |     }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:36:13: error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
 34 |     func configure(using event: ReadyEvt) {
 35 |         event.guilds.forEach(appendOrReplace(_:))
 36 |         dms = event.private_channels
    |             |- error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
    |             `- note: arguments to generic parameter 'Element' ('DecodeThrowable<Channel>' and 'Channel') are expected to be equal
 37 |         user = event.user
 38 |         event.users.forEach(appendOrReplace(_:))
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:40:39: error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
 38 |         event.users.forEach(appendOrReplace(_:))
 39 |         event.merged_members.enumerated().forEach { (idx, guildMembers) in
 40 |             members[event.guilds[idx].id] = guildMembers.first(where: { $0.user_id == event.user.id })
    |                                       `- error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
 41 |         }
 42 |         print(members)
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
 62 |     /// - Parameter channel: The channel to append.
 63 |     func append(_ channel: Channel) {
 64 |         guard let identifier = channel.guild_id else {
    |                   `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
 65 |             return
 66 |         }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
 72 |     /// - Parameter channel: The channel to remove.
 73 |     func remove(_ channel: Channel) {
 74 |         guard let identifier = channel.guild_id else {
    |                   `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
 75 |             return
 76 |         }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
 42 |     /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
 43 |     /// > stale UI issues (i.e. stale UI)
 44 |     @Published public var cache: CachedState = CachedState()
    |      `- error: unknown attribute 'Published'
 45 |
 46 |     /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
 47 |     ///
 48 |     /// Contains a dict of user presences, keyed by their respective user IDs
 49 |     @Published public var presences: [Snowflake: Presence] = [:]
    |      `- error: unknown attribute 'Published'
 50 |
 51 |     /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
 50 |
 51 |     /// An array of guild folders
 52 |     @Published public var guildFolders: [GuildFolderItem] = []
    |      `- error: unknown attribute 'Published'
 53 |
 54 |     /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
 55 |     ///
 56 |     /// Includes both single DMs and group DMs
 57 |     @Published public var privateChannels: [Channel] = []
    |      `- error: unknown attribute 'Published'
 58 |
 59 |     /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
 58 |
 59 |     /// Read state
 60 |     @Published public var readState: [Snowflake: ReadState.Entry] = [:]
    |      `- error: unknown attribute 'Published'
 61 |
 62 |     private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
 67 |     ///
 68 |     /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
 69 |     @Published public var connected = false
    |      `- error: unknown attribute 'Published'
 70 |     /// If the network is reachable (has network connectivity)
 71 |     ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
 71 |     ///
 72 |     /// `@Published` proxy of ``RobustWebSocket/reachable``
 73 |     @Published public var reachable = false
    |      `- error: unknown attribute 'Published'
 74 |
 75 |     // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
 18 | ///
 19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
 20 | public class DiscordGateway: ObservableObject {
    |                              `- error: cannot find type 'ObservableObject' in scope
 21 |     // Events
 22 |     /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:112:15: error: value of type 'CachedState' has no member 'objectWillChange'
110 |         // Clear cache
111 |         cache = CachedState()
112 |         cache.objectWillChange.send()
    |               `- error: value of type 'CachedState' has no member 'objectWillChange'
113 |         socket?.close(code: .normalClosure)
114 |     }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
194 |
195 |     private func handleGuildUpdate(_ updatedGuild: Guild) {
196 |         guard let existingGuild = cache.guilds[updatedGuild.id] else {
    |                   `- warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
197 |             return
198 |         }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:200:13: warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
198 |         }
199 |
200 |         var modifiedGuild = updatedGuild
    |             `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
201 |
202 |         // ``GatewayEvent.guildUpdate`` events are missing data that is only present in the initial ``GatewayEvent.ready`` event, so we need to copy those properties over manually.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:221:28: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
219 |         let settings: Discord_UserSettings
220 |         do {
221 |             settings = try Discord_UserSettings(serializedData: Data(base64Encoded: proto)!)
    |                            |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
    |                            `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
222 |         } catch {
223 |             log.error("Proto decode error! \(String(describing: error))")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:303:15: error: value of type 'CachedState' has no member 'objectWillChange'
301 |         }
302 |
303 |         cache.objectWillChange.send()
    |               `- error: value of type 'CachedState' has no member 'objectWillChange'
304 |         onEvent.notify(event: data)
305 |         log.trace("[EVENT] Dispatched event")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
 16 |     ///
 17 |     /// > The guild's ID is its key
 18 |     @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
    |      `- error: unknown attribute 'Published'
 19 |
 20 |     @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
 18 |     @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
 19 |
 20 |     @Published public private(set) var members: [Snowflake: Member] = [:]
    |      `- error: unknown attribute 'Published'
 21 |
 22 |     /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
 21 |
 22 |     /// DM channels the user is in
 23 |     @Published public private(set) var dms: [Channel] = []
    |      `- error: unknown attribute 'Published'
 24 |
 25 |     /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
 24 |
 25 |     /// Cached object of current user
 26 |     @Published public private(set) var user: CurrentUser?
    |      `- error: unknown attribute 'Published'
 27 |
 28 |     /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
 28 |     /// Cached users, initially populated from `READY` event and might
 29 |     /// grow over time
 30 |     @Published public private(set) var users: [Snowflake: User] = [:]
    |      `- error: unknown attribute 'Published'
 31 |
 32 |     /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
 12 | ///
 13 | /// Used in ``DiscordGateway/cache``.
 14 | public class CachedState: ObservableObject {
    |                           `- error: cannot find type 'ObservableObject' in scope
 15 |     /// Dictionary of guilds the user is in
 16 |     ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:35:22: error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
 33 |     /// - Parameter event: An incoming Gateway "ready" event.
 34 |     func configure(using event: ReadyEvt) {
 35 |         event.guilds.forEach(appendOrReplace(_:))
    |                      `- error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
 36 |         dms = event.private_channels
 37 |         user = event.user
    :
 47 |     /// Updates or appends the provided guild.
 48 |     /// - Parameter guild: The guild you want to update or append to the cache.
 49 |     func appendOrReplace(_ guild: PreloadedGuild) {
    |          `- note: found candidate with type '(PreloadedGuild) -> ()'
 50 |         guilds.updateValue(guild, forKey: guild.id)
 51 |     }
    :
100 |     /// Appends or replaces  the given message within the appropriate channel.
101 |     /// - Parameter message: The message to append.
102 |     func appendOrReplace(_ message: Message) {
    |          `- note: found candidate with type '(Message) -> ()'
103 |         if let idx = dms.firstIndex(where: { $0.id == message.channel_id }) {
104 |             dms[idx].last_message_id = message.id
    :
110 |     /// Appends or replaces the provided user in the cache.
111 |     /// - Parameter user: The user to cache.
112 |     func appendOrReplace(_ user: User) {
    |          `- note: found candidate with type '(User) -> ()'
113 |         users.updateValue(user, forKey: user.id)
114 |     }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:36:13: error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
 34 |     func configure(using event: ReadyEvt) {
 35 |         event.guilds.forEach(appendOrReplace(_:))
 36 |         dms = event.private_channels
    |             |- error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
    |             `- note: arguments to generic parameter 'Element' ('DecodeThrowable<Channel>' and 'Channel') are expected to be equal
 37 |         user = event.user
 38 |         event.users.forEach(appendOrReplace(_:))
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:40:39: error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
 38 |         event.users.forEach(appendOrReplace(_:))
 39 |         event.merged_members.enumerated().forEach { (idx, guildMembers) in
 40 |             members[event.guilds[idx].id] = guildMembers.first(where: { $0.user_id == event.user.id })
    |                                       `- error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
 41 |         }
 42 |         print(members)
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
 62 |     /// - Parameter channel: The channel to append.
 63 |     func append(_ channel: Channel) {
 64 |         guard let identifier = channel.guild_id else {
    |                   `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
 65 |             return
 66 |         }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
 72 |     /// - Parameter channel: The channel to remove.
 73 |     func remove(_ channel: Channel) {
 74 |         guard let identifier = channel.guild_id else {
    |                   `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
 75 |             return
 76 |         }
/host/spi-builder-workspace/Sources/DiscordKit/protos/FavoriteChannel.pb.swift:58:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 | extension FavoriteChannelType: CaseIterable {
 57 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 58 |   public static var allCases: [FavoriteChannelType] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |     .unsetFavoriteChannelType,
 60 |     .referenceOriginal,
/host/spi-builder-workspace/Sources/DiscordKit/protos/FavoriteGIFs.pb.swift:58:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 | extension GIFType: CaseIterable {
 57 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 58 |   public static var allCases: [GIFType] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |     .none,
 60 |     .image,
/host/spi-builder-workspace/Sources/DiscordKit/protos/FavoriteChannel.pb.swift:58:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 | extension FavoriteChannelType: CaseIterable {
 57 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 58 |   public static var allCases: [FavoriteChannelType] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |     .unsetFavoriteChannelType,
 60 |     .referenceOriginal,
/host/spi-builder-workspace/Sources/DiscordKit/protos/FavoriteGIFs.pb.swift:58:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 | extension GIFType: CaseIterable {
 57 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 58 |   public static var allCases: [GIFType] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |     .none,
 60 |     .image,
/host/spi-builder-workspace/Sources/DiscordKit/protos/FavoriteChannel.pb.swift:58:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 | extension FavoriteChannelType: CaseIterable {
 57 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 58 |   public static var allCases: [FavoriteChannelType] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |     .unsetFavoriteChannelType,
 60 |     .referenceOriginal,
/host/spi-builder-workspace/Sources/DiscordKit/protos/FavoriteGIFs.pb.swift:58:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 | extension GIFType: CaseIterable {
 57 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 58 |   public static var allCases: [GIFType] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |     .none,
 60 |     .image,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Inbox.pb.swift:62:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 60 | extension InboxTab: CaseIterable {
 61 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 62 |   public static var allCases: [InboxTab] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |     .unspecified,
 64 |     .mentions,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Inbox.pb.swift:62:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 60 | extension InboxTab: CaseIterable {
 61 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 62 |   public static var allCases: [InboxTab] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |     .unspecified,
 64 |     .mentions,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Inbox.pb.swift:62:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 60 | extension InboxTab: CaseIterable {
 61 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 62 |   public static var allCases: [InboxTab] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |     .unspecified,
 64 |     .mentions,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Appearance.pb.swift:59:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 57 | extension Theme: CaseIterable {
 58 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 59 |   public static var allCases: [Theme] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |     .unset,
 61 |     .dark,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Appearance.pb.swift:59:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 57 | extension Theme: CaseIterable {
 58 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 59 |   public static var allCases: [Theme] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |     .unset,
 61 |     .dark,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Appearance.pb.swift:59:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 57 | extension Theme: CaseIterable {
 58 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 59 |   public static var allCases: [Theme] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |     .unset,
 61 |     .dark,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Privacy.pb.swift:57:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 | extension GuildActivityStatusRestrictionDefault: CaseIterable {
 56 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 57 |   public static var allCases: [GuildActivityStatusRestrictionDefault] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |     .off,
 59 |     .onForLargeGuilds,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Privacy.pb.swift:57:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 | extension GuildActivityStatusRestrictionDefault: CaseIterable {
 56 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 57 |   public static var allCases: [GuildActivityStatusRestrictionDefault] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |     .off,
 59 |     .onForLargeGuilds,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/Privacy.pb.swift:57:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 | extension GuildActivityStatusRestrictionDefault: CaseIterable {
 56 |   // The compiler won't synthesize support with the UNRECOGNIZED case.
 57 |   public static var allCases: [GuildActivityStatusRestrictionDefault] = [
    |                     |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |     .off,
 59 |     .onForLargeGuilds,
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/TextAndImages.pb.swift:295:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'TextAndImagesSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
268 |   ]
269 |
270 |   fileprivate class _StorageClass {
    |                     `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
271 |     var _diversitySurrogate: SwiftProtobuf.Google_Protobuf_StringValue? = nil
272 |     var _useRichChatInput: SwiftProtobuf.Google_Protobuf_BoolValue? = nil
    :
293 |     var _useLegacyChatInput: SwiftProtobuf.Google_Protobuf_BoolValue? = nil
294 |
295 |     static let defaultInstance = _StorageClass()
    |                |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'TextAndImagesSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
296 |
297 |     private init() {}
/host/spi-builder-workspace/Sources/DiscordKit/protos/Settings/TextAndImages.pb.swift:295:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'TextAndImagesSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
268 |   ]
269 |
270 |   fileprivate class _StorageClass {
    |                     `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
271 |     var _diversitySurrogate: SwiftProtobuf.Google_Protobuf_StringValue? = nil
272 |     var _useRichChatInput: SwiftProtobuf.Google_Protobuf_BoolValue? = nil
    :
293 |     var _useLegacyChatInput: SwiftProtobuf.Google_Protobuf_BoolValue? = nil
294 |
295 |     static let defaultInstance = _StorageClass()
    |                |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'TextAndImagesSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
296 |
297 |     private init() {}
[1143/1144] Compiling DiscordKit VoiceAndVideo.pb.swift
BUILD FAILURE 6.0 linux