Build Information
Successful build of SwiftDisc, reference main (10b4fe), with Swift 6.1 for macOS (SPM) on 11 Dec 2025 03:15:12 UTC.
Swift 6 data race errors: 63
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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 InferSendableFromCapturesBuild Log
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:17:23: warning: static property 'guildMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
| |- warning: static property 'guildMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMessageReactions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:18:23: warning: static property 'guildMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
| |- warning: static property 'guildMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMessageTyping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:19:23: warning: static property 'directMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
| |- warning: static property 'directMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:20:23: warning: static property 'directMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
| |- warning: static property 'directMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessageReactions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:21:23: warning: static property 'directMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
| |- warning: static property 'directMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessageTyping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:22:23: warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
| |- warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'messageContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:23:23: warning: static property 'guildScheduledEvents' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
| |- warning: static property 'guildScheduledEvents' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildScheduledEvents' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:24:23: warning: static property 'autoModerationConfiguration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
| |- warning: static property 'autoModerationConfiguration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'autoModerationConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:25:23: warning: static property 'autoModerationExecution' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
| |- warning: static property 'autoModerationExecution' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'autoModerationExecution' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:50:24: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
48 | self.token = token
49 | self.http = HTTPClient(token: token, configuration: configuration)
50 | self.gateway = GatewayClient(token: token, configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
51 | self.configuration = configuration
52 | if configuration.enableVoiceExperimental {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:57:36: warning: sending 'guildId' risks causing data races; this is an error in the Swift 6 language mode
55 | configuration: configuration,
56 | sendVoiceStateUpdate: { [weak gateway] (guildId, channelId, selfMute, selfDeaf) async in
57 | await gateway?.updateVoiceState(guildId: guildId, channelId: channelId, selfMute: selfMute, selfDeaf: selfDeaf)
| |- warning: sending 'guildId' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'guildId' to actor-isolated instance method 'updateVoiceState(guildId:channelId:selfMute:selfDeaf:)' risks causing data races between actor-isolated and task-isolated uses
58 | }
59 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:57:36: warning: sending 'channelId' risks causing data races; this is an error in the Swift 6 language mode
55 | configuration: configuration,
56 | sendVoiceStateUpdate: { [weak gateway] (guildId, channelId, selfMute, selfDeaf) async in
57 | await gateway?.updateVoiceState(guildId: guildId, channelId: channelId, selfMute: selfMute, selfDeaf: selfDeaf)
| |- warning: sending 'channelId' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'channelId' to actor-isolated instance method 'updateVoiceState(guildId:channelId:selfMute:selfDeaf:)' risks causing data races between actor-isolated and task-isolated uses
58 | }
59 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:67:22: 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
65 | vc.setOnFrame { [weak self] frame in
66 | guard let self, let cb = self.onVoiceFrame else { return }
67 | 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
68 | await cb(frame)
| | `- note: closure captures non-Sendable 'frame'
| `- note: closure captures non-Sendable 'cb'
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:400:27: warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
398 |
399 | public func loginAndConnect(intents: GatewayIntents) async throws {
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
| |- warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'intents' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing data races between actor-isolated and task-isolated uses
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:400:27: warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
398 |
399 | public func loginAndConnect(intents: GatewayIntents) async throws {
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
| |- warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DiscordEvent) -> Void' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing races in between task-isolated and actor-isolated uses
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402: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
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| | | `- note: closure captures non-Sendable 'event'
| | `- note: closure captures non-Sendable 'self'
| `- 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
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402:42: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'event' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:408:27: warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
406 | // Sharded connect helper
407 | public func loginAndConnectSharded(index: Int, total: Int, intents: GatewayIntents) async throws {
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
| |- warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'intents' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing data races between actor-isolated and task-isolated uses
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:408:27: warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
406 | // Sharded connect helper
407 | public func loginAndConnectSharded(index: Int, total: Int, intents: GatewayIntents) async throws {
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
| |- warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DiscordEvent) -> Void' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing races in between task-isolated and actor-isolated uses
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410: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
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| | | `- note: closure captures non-Sendable 'event'
| | `- note: closure captures non-Sendable 'self'
| `- 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
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410:42: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'event' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:437:23: warning: sending 'activities' risks causing data races; this is an error in the Swift 6 language mode
435 | // Phase 3: Presence helpers
436 | public func setPresence(status: String, activities: [PresenceUpdatePayload.Activity] = [], afk: Bool = false, since: Int? = nil) async {
437 | await gateway.setPresence(status: status, activities: activities, afk: afk, since: since)
| |- warning: sending 'activities' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'activities' to actor-isolated instance method 'setPresence(status:activities:afk:since:)' risks causing data races between actor-isolated and task-isolated uses
438 | }
439 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:491:28: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
489 | // MARK: - Internal event emission (called by EventDispatcher)
490 | func _internalEmitEvent(_ event: DiscordEvent) {
491 | eventContinuation?.yield(event)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
492 | }
493 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:37:27: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
35 | let enc = JSONEncoder()
36 | let data = try enc.encode(payload)
37 | try await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
38 | }
39 | private var status: Status = .disconnected
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:60:32: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
58 | let payload = GatewayPayload(op: .voiceStateUpdate, d: VoiceStateUpdateData(guild_id: guildId, channel_id: channelId, self_mute: selfMute, self_deaf: selfDeaf), s: nil, t: nil)
59 | if let data = try? JSONEncoder().encode(payload) {
60 | try? await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:85:62: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
83 |
84 | // Receive initial HELLO frame from the gateway
85 | guard case let .string(helloText) = try await socket.receive() else {
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
86 | throw DiscordError.gateway("Expected HELLO string frame")
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:104:30: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
102 | let payload = GatewayPayload(op: .resume, d: resume, s: nil, t: nil)
103 | let data = try enc.encode(payload)
104 | try await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
105 | } else {
106 | self.status = .identifying
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:111:30: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
109 | let payload = GatewayPayload(op: .identify, d: identify, s: nil, t: nil)
110 | let data = try enc.encode(payload)
111 | try await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
112 | }
113 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:115:23: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
113 |
114 | // Start read loop for gateway messages
115 | Task.detached { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
116 | await self?.readLoop(eventSink: eventSink)
| `- note: closure captures 'eventSink' which is accessible to 'self'-isolated code
117 | }
118 | // Wait for READY or RESUMED before returning
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:382:23: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
380 | // Basic reconnect: close existing socket and perform a fresh connect
381 | if !allowReconnect { return }
382 | await socket?.close()
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'close()' risks causing races in between 'self'-isolated and nonisolated uses
383 | socket = nil
384 | heartbeatTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:131:44: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
129 | while true {
130 | do {
131 | let msg = try await socket.receive()
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
132 | let data: Data
133 | switch msg {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:116:25: warning: sending 'eventSink' risks causing data races; this is an error in the Swift 6 language mode
114 | // Start read loop for gateway messages
115 | Task.detached { [weak self] in
116 | await self?.readLoop(eventSink: eventSink)
| |- warning: sending 'eventSink' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'eventSink' to actor-isolated instance method 'readLoop(eventSink:)' risks causing data races between actor-isolated and task-isolated uses
117 | }
118 | // Wait for READY or RESUMED before returning
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:367:35: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
365 | let payload = GatewayPayload(op: .heartbeat, d: hb, s: nil, t: nil)
366 | let data = try JSONEncoder().encode(payload)
367 | try await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
368 | awaitingHeartbeatAck = true
369 | lastHeartbeatSentAt = Date()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:406:23: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
404 |
405 | func close() async {
406 | await socket?.close()
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'close()' risks causing races in between 'self'-isolated and nonisolated uses
407 | socket = nil
408 | heartbeatTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:419:31: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
417 | let payload = GatewayPayload(op: .presenceUpdate, d: p, s: nil, t: nil)
418 | if let data = try? JSONEncoder().encode(payload) {
419 | try? await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
420 | }
421 | }
[62/64] Compiling SwiftDisc WebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:207:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
205 | // MARK: - Request/Receive Guild Members
206 | public struct RequestGuildMembers: Codable, Hashable {
207 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
208 | public let d: Payload
209 | public struct Payload: Codable, Hashable {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:7:23: warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
6 |
7 | public static let guilds = GatewayIntents(rawValue: 1 << 0)
| |- warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guilds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:8:23: warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
6 |
7 | public static let guilds = GatewayIntents(rawValue: 1 << 0)
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
| |- warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMembers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:9:23: warning: static property 'guildModeration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
7 | public static let guilds = GatewayIntents(rawValue: 1 << 0)
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
| |- warning: static property 'guildModeration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildModeration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:10:23: warning: static property 'guildEmojisAndStickers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
| |- warning: static property 'guildEmojisAndStickers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildEmojisAndStickers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:11:23: warning: static property 'guildIntegrations' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
| |- warning: static property 'guildIntegrations' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildIntegrations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:12:23: warning: static property 'guildWebhooks' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
| |- warning: static property 'guildWebhooks' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildWebhooks' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:13:23: warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
| |- warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildInvites' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:14:23: warning: static property 'guildVoiceStates' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
| |- warning: static property 'guildVoiceStates' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildVoiceStates' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:15:23: warning: static property 'guildPresences' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
| |- warning: static property 'guildPresences' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildPresences' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:16:23: warning: static property 'guildMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
| |- warning: static property 'guildMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMessages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:17:23: warning: static property 'guildMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
| |- warning: static property 'guildMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMessageReactions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:18:23: warning: static property 'guildMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
| |- warning: static property 'guildMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMessageTyping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:19:23: warning: static property 'directMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
| |- warning: static property 'directMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:20:23: warning: static property 'directMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
| |- warning: static property 'directMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessageReactions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:21:23: warning: static property 'directMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
| |- warning: static property 'directMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessageTyping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:22:23: warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
| |- warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'messageContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:23:23: warning: static property 'guildScheduledEvents' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
| |- warning: static property 'guildScheduledEvents' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildScheduledEvents' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:24:23: warning: static property 'autoModerationConfiguration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
| |- warning: static property 'autoModerationConfiguration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'autoModerationConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:25:23: warning: static property 'autoModerationExecution' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
| |- warning: static property 'autoModerationExecution' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'autoModerationExecution' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:50:24: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
48 | self.token = token
49 | self.http = HTTPClient(token: token, configuration: configuration)
50 | self.gateway = GatewayClient(token: token, configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
51 | self.configuration = configuration
52 | if configuration.enableVoiceExperimental {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:57:36: warning: sending 'guildId' risks causing data races; this is an error in the Swift 6 language mode
55 | configuration: configuration,
56 | sendVoiceStateUpdate: { [weak gateway] (guildId, channelId, selfMute, selfDeaf) async in
57 | await gateway?.updateVoiceState(guildId: guildId, channelId: channelId, selfMute: selfMute, selfDeaf: selfDeaf)
| |- warning: sending 'guildId' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'guildId' to actor-isolated instance method 'updateVoiceState(guildId:channelId:selfMute:selfDeaf:)' risks causing data races between actor-isolated and task-isolated uses
58 | }
59 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:57:36: warning: sending 'channelId' risks causing data races; this is an error in the Swift 6 language mode
55 | configuration: configuration,
56 | sendVoiceStateUpdate: { [weak gateway] (guildId, channelId, selfMute, selfDeaf) async in
57 | await gateway?.updateVoiceState(guildId: guildId, channelId: channelId, selfMute: selfMute, selfDeaf: selfDeaf)
| |- warning: sending 'channelId' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'channelId' to actor-isolated instance method 'updateVoiceState(guildId:channelId:selfMute:selfDeaf:)' risks causing data races between actor-isolated and task-isolated uses
58 | }
59 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:67:22: 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
65 | vc.setOnFrame { [weak self] frame in
66 | guard let self, let cb = self.onVoiceFrame else { return }
67 | 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
68 | await cb(frame)
| | `- note: closure captures non-Sendable 'frame'
| `- note: closure captures non-Sendable 'cb'
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:400:27: warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
398 |
399 | public func loginAndConnect(intents: GatewayIntents) async throws {
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
| |- warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'intents' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing data races between actor-isolated and task-isolated uses
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:400:27: warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
398 |
399 | public func loginAndConnect(intents: GatewayIntents) async throws {
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
| |- warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DiscordEvent) -> Void' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing races in between task-isolated and actor-isolated uses
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402: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
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| | | `- note: closure captures non-Sendable 'event'
| | `- note: closure captures non-Sendable 'self'
| `- 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
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402:42: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'event' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:408:27: warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
406 | // Sharded connect helper
407 | public func loginAndConnectSharded(index: Int, total: Int, intents: GatewayIntents) async throws {
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
| |- warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'intents' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing data races between actor-isolated and task-isolated uses
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:408:27: warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
406 | // Sharded connect helper
407 | public func loginAndConnectSharded(index: Int, total: Int, intents: GatewayIntents) async throws {
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
| |- warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DiscordEvent) -> Void' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing races in between task-isolated and actor-isolated uses
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410: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
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| | | `- note: closure captures non-Sendable 'event'
| | `- note: closure captures non-Sendable 'self'
| `- 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
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410:42: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'event' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:437:23: warning: sending 'activities' risks causing data races; this is an error in the Swift 6 language mode
435 | // Phase 3: Presence helpers
436 | public func setPresence(status: String, activities: [PresenceUpdatePayload.Activity] = [], afk: Bool = false, since: Int? = nil) async {
437 | await gateway.setPresence(status: status, activities: activities, afk: afk, since: since)
| |- warning: sending 'activities' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'activities' to actor-isolated instance method 'setPresence(status:activities:afk:since:)' risks causing data races between actor-isolated and task-isolated uses
438 | }
439 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:491:28: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
489 | // MARK: - Internal event emission (called by EventDispatcher)
490 | func _internalEmitEvent(_ event: DiscordEvent) {
491 | eventContinuation?.yield(event)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
492 | }
493 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:37:27: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
35 | let enc = JSONEncoder()
36 | let data = try enc.encode(payload)
37 | try await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
38 | }
39 | private var status: Status = .disconnected
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:60:32: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
58 | let payload = GatewayPayload(op: .voiceStateUpdate, d: VoiceStateUpdateData(guild_id: guildId, channel_id: channelId, self_mute: selfMute, self_deaf: selfDeaf), s: nil, t: nil)
59 | if let data = try? JSONEncoder().encode(payload) {
60 | try? await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:85:62: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
83 |
84 | // Receive initial HELLO frame from the gateway
85 | guard case let .string(helloText) = try await socket.receive() else {
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
86 | throw DiscordError.gateway("Expected HELLO string frame")
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:104:30: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
102 | let payload = GatewayPayload(op: .resume, d: resume, s: nil, t: nil)
103 | let data = try enc.encode(payload)
104 | try await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
105 | } else {
106 | self.status = .identifying
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:111:30: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
109 | let payload = GatewayPayload(op: .identify, d: identify, s: nil, t: nil)
110 | let data = try enc.encode(payload)
111 | try await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
112 | }
113 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:115:23: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
113 |
114 | // Start read loop for gateway messages
115 | Task.detached { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
116 | await self?.readLoop(eventSink: eventSink)
| `- note: closure captures 'eventSink' which is accessible to 'self'-isolated code
117 | }
118 | // Wait for READY or RESUMED before returning
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:382:23: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
380 | // Basic reconnect: close existing socket and perform a fresh connect
381 | if !allowReconnect { return }
382 | await socket?.close()
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'close()' risks causing races in between 'self'-isolated and nonisolated uses
383 | socket = nil
384 | heartbeatTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:131:44: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
129 | while true {
130 | do {
131 | let msg = try await socket.receive()
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
132 | let data: Data
133 | switch msg {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:116:25: warning: sending 'eventSink' risks causing data races; this is an error in the Swift 6 language mode
114 | // Start read loop for gateway messages
115 | Task.detached { [weak self] in
116 | await self?.readLoop(eventSink: eventSink)
| |- warning: sending 'eventSink' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'eventSink' to actor-isolated instance method 'readLoop(eventSink:)' risks causing data races between actor-isolated and task-isolated uses
117 | }
118 | // Wait for READY or RESUMED before returning
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:367:35: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
365 | let payload = GatewayPayload(op: .heartbeat, d: hb, s: nil, t: nil)
366 | let data = try JSONEncoder().encode(payload)
367 | try await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
368 | awaitingHeartbeatAck = true
369 | lastHeartbeatSentAt = Date()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:406:23: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
404 |
405 | func close() async {
406 | await socket?.close()
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'close()' risks causing races in between 'self'-isolated and nonisolated uses
407 | socket = nil
408 | heartbeatTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:419:31: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
417 | let payload = GatewayPayload(op: .presenceUpdate, d: p, s: nil, t: nil)
418 | if let data = try? JSONEncoder().encode(payload) {
419 | try? await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
420 | }
421 | }
[63/64] Compiling SwiftDisc ActivityBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:207:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
205 | // MARK: - Request/Receive Guild Members
206 | public struct RequestGuildMembers: Codable, Hashable {
207 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
208 | public let d: Payload
209 | public struct Payload: Codable, Hashable {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:7:23: warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
6 |
7 | public static let guilds = GatewayIntents(rawValue: 1 << 0)
| |- warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guilds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:8:23: warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
6 |
7 | public static let guilds = GatewayIntents(rawValue: 1 << 0)
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
| |- warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMembers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:9:23: warning: static property 'guildModeration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
7 | public static let guilds = GatewayIntents(rawValue: 1 << 0)
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
| |- warning: static property 'guildModeration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildModeration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:10:23: warning: static property 'guildEmojisAndStickers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
| |- warning: static property 'guildEmojisAndStickers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildEmojisAndStickers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:11:23: warning: static property 'guildIntegrations' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
| |- warning: static property 'guildIntegrations' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildIntegrations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:12:23: warning: static property 'guildWebhooks' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
| |- warning: static property 'guildWebhooks' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildWebhooks' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:13:23: warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
| |- warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildInvites' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:14:23: warning: static property 'guildVoiceStates' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
| |- warning: static property 'guildVoiceStates' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildVoiceStates' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:15:23: warning: static property 'guildPresences' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
| |- warning: static property 'guildPresences' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildPresences' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:16:23: warning: static property 'guildMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
| |- warning: static property 'guildMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMessages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:17:23: warning: static property 'guildMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
| |- warning: static property 'guildMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMessageReactions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:18:23: warning: static property 'guildMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
| |- warning: static property 'guildMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMessageTyping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:19:23: warning: static property 'directMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
| |- warning: static property 'directMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:20:23: warning: static property 'directMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
| |- warning: static property 'directMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessageReactions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:21:23: warning: static property 'directMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
| |- warning: static property 'directMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessageTyping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:22:23: warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
| |- warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'messageContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:23:23: warning: static property 'guildScheduledEvents' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
| |- warning: static property 'guildScheduledEvents' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildScheduledEvents' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:24:23: warning: static property 'autoModerationConfiguration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
| |- warning: static property 'autoModerationConfiguration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'autoModerationConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:25:23: warning: static property 'autoModerationExecution' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
| |- warning: static property 'autoModerationExecution' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'autoModerationExecution' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:50:24: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
48 | self.token = token
49 | self.http = HTTPClient(token: token, configuration: configuration)
50 | self.gateway = GatewayClient(token: token, configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
51 | self.configuration = configuration
52 | if configuration.enableVoiceExperimental {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:57:36: warning: sending 'guildId' risks causing data races; this is an error in the Swift 6 language mode
55 | configuration: configuration,
56 | sendVoiceStateUpdate: { [weak gateway] (guildId, channelId, selfMute, selfDeaf) async in
57 | await gateway?.updateVoiceState(guildId: guildId, channelId: channelId, selfMute: selfMute, selfDeaf: selfDeaf)
| |- warning: sending 'guildId' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'guildId' to actor-isolated instance method 'updateVoiceState(guildId:channelId:selfMute:selfDeaf:)' risks causing data races between actor-isolated and task-isolated uses
58 | }
59 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:57:36: warning: sending 'channelId' risks causing data races; this is an error in the Swift 6 language mode
55 | configuration: configuration,
56 | sendVoiceStateUpdate: { [weak gateway] (guildId, channelId, selfMute, selfDeaf) async in
57 | await gateway?.updateVoiceState(guildId: guildId, channelId: channelId, selfMute: selfMute, selfDeaf: selfDeaf)
| |- warning: sending 'channelId' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'channelId' to actor-isolated instance method 'updateVoiceState(guildId:channelId:selfMute:selfDeaf:)' risks causing data races between actor-isolated and task-isolated uses
58 | }
59 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:67:22: 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
65 | vc.setOnFrame { [weak self] frame in
66 | guard let self, let cb = self.onVoiceFrame else { return }
67 | 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
68 | await cb(frame)
| | `- note: closure captures non-Sendable 'frame'
| `- note: closure captures non-Sendable 'cb'
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:400:27: warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
398 |
399 | public func loginAndConnect(intents: GatewayIntents) async throws {
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
| |- warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'intents' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing data races between actor-isolated and task-isolated uses
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:400:27: warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
398 |
399 | public func loginAndConnect(intents: GatewayIntents) async throws {
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
| |- warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DiscordEvent) -> Void' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing races in between task-isolated and actor-isolated uses
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402: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
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| | | `- note: closure captures non-Sendable 'event'
| | `- note: closure captures non-Sendable 'self'
| `- 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
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402:42: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'event' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:408:27: warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
406 | // Sharded connect helper
407 | public func loginAndConnectSharded(index: Int, total: Int, intents: GatewayIntents) async throws {
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
| |- warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'intents' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing data races between actor-isolated and task-isolated uses
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:408:27: warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
406 | // Sharded connect helper
407 | public func loginAndConnectSharded(index: Int, total: Int, intents: GatewayIntents) async throws {
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
| |- warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DiscordEvent) -> Void' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing races in between task-isolated and actor-isolated uses
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410: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
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| | | `- note: closure captures non-Sendable 'event'
| | `- note: closure captures non-Sendable 'self'
| `- 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
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410:42: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'event' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:437:23: warning: sending 'activities' risks causing data races; this is an error in the Swift 6 language mode
435 | // Phase 3: Presence helpers
436 | public func setPresence(status: String, activities: [PresenceUpdatePayload.Activity] = [], afk: Bool = false, since: Int? = nil) async {
437 | await gateway.setPresence(status: status, activities: activities, afk: afk, since: since)
| |- warning: sending 'activities' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'activities' to actor-isolated instance method 'setPresence(status:activities:afk:since:)' risks causing data races between actor-isolated and task-isolated uses
438 | }
439 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:491:28: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
489 | // MARK: - Internal event emission (called by EventDispatcher)
490 | func _internalEmitEvent(_ event: DiscordEvent) {
491 | eventContinuation?.yield(event)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
492 | }
493 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:37:27: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
35 | let enc = JSONEncoder()
36 | let data = try enc.encode(payload)
37 | try await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
38 | }
39 | private var status: Status = .disconnected
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:60:32: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
58 | let payload = GatewayPayload(op: .voiceStateUpdate, d: VoiceStateUpdateData(guild_id: guildId, channel_id: channelId, self_mute: selfMute, self_deaf: selfDeaf), s: nil, t: nil)
59 | if let data = try? JSONEncoder().encode(payload) {
60 | try? await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:85:62: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
83 |
84 | // Receive initial HELLO frame from the gateway
85 | guard case let .string(helloText) = try await socket.receive() else {
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
86 | throw DiscordError.gateway("Expected HELLO string frame")
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:104:30: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
102 | let payload = GatewayPayload(op: .resume, d: resume, s: nil, t: nil)
103 | let data = try enc.encode(payload)
104 | try await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
105 | } else {
106 | self.status = .identifying
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:111:30: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
109 | let payload = GatewayPayload(op: .identify, d: identify, s: nil, t: nil)
110 | let data = try enc.encode(payload)
111 | try await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
112 | }
113 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:115:23: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
113 |
114 | // Start read loop for gateway messages
115 | Task.detached { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
116 | await self?.readLoop(eventSink: eventSink)
| `- note: closure captures 'eventSink' which is accessible to 'self'-isolated code
117 | }
118 | // Wait for READY or RESUMED before returning
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:382:23: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
380 | // Basic reconnect: close existing socket and perform a fresh connect
381 | if !allowReconnect { return }
382 | await socket?.close()
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'close()' risks causing races in between 'self'-isolated and nonisolated uses
383 | socket = nil
384 | heartbeatTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:131:44: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
129 | while true {
130 | do {
131 | let msg = try await socket.receive()
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
132 | let data: Data
133 | switch msg {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:116:25: warning: sending 'eventSink' risks causing data races; this is an error in the Swift 6 language mode
114 | // Start read loop for gateway messages
115 | Task.detached { [weak self] in
116 | await self?.readLoop(eventSink: eventSink)
| |- warning: sending 'eventSink' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'eventSink' to actor-isolated instance method 'readLoop(eventSink:)' risks causing data races between actor-isolated and task-isolated uses
117 | }
118 | // Wait for READY or RESUMED before returning
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:367:35: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
365 | let payload = GatewayPayload(op: .heartbeat, d: hb, s: nil, t: nil)
366 | let data = try JSONEncoder().encode(payload)
367 | try await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
368 | awaitingHeartbeatAck = true
369 | lastHeartbeatSentAt = Date()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:406:23: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
404 |
405 | func close() async {
406 | await socket?.close()
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'close()' risks causing races in between 'self'-isolated and nonisolated uses
407 | socket = nil
408 | heartbeatTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:419:31: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
417 | let payload = GatewayPayload(op: .presenceUpdate, d: p, s: nil, t: nil)
418 | if let data = try? JSONEncoder().encode(payload) {
419 | try? await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
420 | }
421 | }
[64/64] Compiling SwiftDisc AutocompleteRouter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayModels.swift:207:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
205 | // MARK: - Request/Receive Guild Members
206 | public struct RequestGuildMembers: Codable, Hashable {
207 | public let op: Int = 8
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'op' case to silence this warning
| `- note: make the property mutable instead
208 | public let d: Payload
209 | public struct Payload: Codable, Hashable {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:7:23: warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
6 |
7 | public static let guilds = GatewayIntents(rawValue: 1 << 0)
| |- warning: static property 'guilds' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guilds' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:8:23: warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
6 |
7 | public static let guilds = GatewayIntents(rawValue: 1 << 0)
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
| |- warning: static property 'guildMembers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMembers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:9:23: warning: static property 'guildModeration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
7 | public static let guilds = GatewayIntents(rawValue: 1 << 0)
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
| |- warning: static property 'guildModeration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildModeration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:10:23: warning: static property 'guildEmojisAndStickers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
8 | public static let guildMembers = GatewayIntents(rawValue: 1 << 1)
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
| |- warning: static property 'guildEmojisAndStickers' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildEmojisAndStickers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:11:23: warning: static property 'guildIntegrations' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
9 | public static let guildModeration = GatewayIntents(rawValue: 1 << 2)
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
| |- warning: static property 'guildIntegrations' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildIntegrations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:12:23: warning: static property 'guildWebhooks' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
10 | public static let guildEmojisAndStickers = GatewayIntents(rawValue: 1 << 3)
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
| |- warning: static property 'guildWebhooks' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildWebhooks' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:13:23: warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
11 | public static let guildIntegrations = GatewayIntents(rawValue: 1 << 4)
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
| |- warning: static property 'guildInvites' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildInvites' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:14:23: warning: static property 'guildVoiceStates' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
12 | public static let guildWebhooks = GatewayIntents(rawValue: 1 << 5)
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
| |- warning: static property 'guildVoiceStates' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildVoiceStates' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:15:23: warning: static property 'guildPresences' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
13 | public static let guildInvites = GatewayIntents(rawValue: 1 << 6)
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
| |- warning: static property 'guildPresences' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildPresences' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:16:23: warning: static property 'guildMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
14 | public static let guildVoiceStates = GatewayIntents(rawValue: 1 << 7)
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
| |- warning: static property 'guildMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMessages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:17:23: warning: static property 'guildMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
15 | public static let guildPresences = GatewayIntents(rawValue: 1 << 8)
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
| |- warning: static property 'guildMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMessageReactions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:18:23: warning: static property 'guildMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
16 | public static let guildMessages = GatewayIntents(rawValue: 1 << 9)
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
| |- warning: static property 'guildMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildMessageTyping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:19:23: warning: static property 'directMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
17 | public static let guildMessageReactions = GatewayIntents(rawValue: 1 << 10)
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
| |- warning: static property 'directMessages' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessages' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:20:23: warning: static property 'directMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
18 | public static let guildMessageTyping = GatewayIntents(rawValue: 1 << 11)
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
| |- warning: static property 'directMessageReactions' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessageReactions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:21:23: warning: static property 'directMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
19 | public static let directMessages = GatewayIntents(rawValue: 1 << 12)
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
| |- warning: static property 'directMessageTyping' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'directMessageTyping' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:22:23: warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
20 | public static let directMessageReactions = GatewayIntents(rawValue: 1 << 13)
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
| |- warning: static property 'messageContent' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'messageContent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:23:23: warning: static property 'guildScheduledEvents' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
21 | public static let directMessageTyping = GatewayIntents(rawValue: 1 << 14)
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
| |- warning: static property 'guildScheduledEvents' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'guildScheduledEvents' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:24:23: warning: static property 'autoModerationConfiguration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
22 | public static let messageContent = GatewayIntents(rawValue: 1 << 15)
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
| |- warning: static property 'autoModerationConfiguration' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'autoModerationConfiguration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/Intents.swift:25:23: warning: static property 'autoModerationExecution' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct GatewayIntents: OptionSet, Codable, Hashable {
| `- note: consider making struct 'GatewayIntents' conform to the 'Sendable' protocol
4 | public let rawValue: UInt64
5 | public init(rawValue: UInt64) { self.rawValue = rawValue }
:
23 | public static let guildScheduledEvents = GatewayIntents(rawValue: 1 << 16)
24 | public static let autoModerationConfiguration = GatewayIntents(rawValue: 1 << 20)
25 | public static let autoModerationExecution = GatewayIntents(rawValue: 1 << 21)
| |- warning: static property 'autoModerationExecution' is not concurrency-safe because non-'Sendable' type 'GatewayIntents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'autoModerationExecution' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:50:24: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
48 | self.token = token
49 | self.http = HTTPClient(token: token, configuration: configuration)
50 | self.gateway = GatewayClient(token: token, configuration: configuration)
| |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'configuration' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
51 | self.configuration = configuration
52 | if configuration.enableVoiceExperimental {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:57:36: warning: sending 'guildId' risks causing data races; this is an error in the Swift 6 language mode
55 | configuration: configuration,
56 | sendVoiceStateUpdate: { [weak gateway] (guildId, channelId, selfMute, selfDeaf) async in
57 | await gateway?.updateVoiceState(guildId: guildId, channelId: channelId, selfMute: selfMute, selfDeaf: selfDeaf)
| |- warning: sending 'guildId' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'guildId' to actor-isolated instance method 'updateVoiceState(guildId:channelId:selfMute:selfDeaf:)' risks causing data races between actor-isolated and task-isolated uses
58 | }
59 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:57:36: warning: sending 'channelId' risks causing data races; this is an error in the Swift 6 language mode
55 | configuration: configuration,
56 | sendVoiceStateUpdate: { [weak gateway] (guildId, channelId, selfMute, selfDeaf) async in
57 | await gateway?.updateVoiceState(guildId: guildId, channelId: channelId, selfMute: selfMute, selfDeaf: selfDeaf)
| |- warning: sending 'channelId' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'channelId' to actor-isolated instance method 'updateVoiceState(guildId:channelId:selfMute:selfDeaf:)' risks causing data races between actor-isolated and task-isolated uses
58 | }
59 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:67:22: 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
65 | vc.setOnFrame { [weak self] frame in
66 | guard let self, let cb = self.onVoiceFrame else { return }
67 | 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
68 | await cb(frame)
| | `- note: closure captures non-Sendable 'frame'
| `- note: closure captures non-Sendable 'cb'
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:400:27: warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
398 |
399 | public func loginAndConnect(intents: GatewayIntents) async throws {
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
| |- warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'intents' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing data races between actor-isolated and task-isolated uses
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:400:27: warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
398 |
399 | public func loginAndConnect(intents: GatewayIntents) async throws {
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
| |- warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DiscordEvent) -> Void' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing races in between task-isolated and actor-isolated uses
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402: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
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| | | `- note: closure captures non-Sendable 'event'
| | `- note: closure captures non-Sendable 'self'
| `- 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
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402:42: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'event' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:402:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
400 | try await gateway.connect(intents: intents, shard: nil, eventSink: { [weak self] event in
401 | guard let self = self else { return }
402 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
403 | })
404 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:408:27: warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
406 | // Sharded connect helper
407 | public func loginAndConnectSharded(index: Int, total: Int, intents: GatewayIntents) async throws {
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
| |- warning: sending 'intents' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'intents' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing data races between actor-isolated and task-isolated uses
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:408:27: warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
406 | // Sharded connect helper
407 | public func loginAndConnectSharded(index: Int, total: Int, intents: GatewayIntents) async throws {
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
| |- warning: sending value of non-Sendable type '(DiscordEvent) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '(DiscordEvent) -> Void' to actor-isolated instance method 'connect(intents:shard:eventSink:)' risks causing races in between task-isolated and actor-isolated uses
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410: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
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| | | `- note: closure captures non-Sendable 'event'
| | `- note: closure captures non-Sendable 'self'
| `- 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
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410:42: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'event' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:410:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
408 | try await gateway.connect(intents: intents, shard: (index, total), eventSink: { [weak self] event in
409 | guard let self = self else { return }
410 | Task { await self.dispatcher.process(event: event, client: self) }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to actor-isolated instance method 'process(event:client:)' risks causing data races between actor-isolated and task-isolated uses
411 | })
412 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:437:23: warning: sending 'activities' risks causing data races; this is an error in the Swift 6 language mode
435 | // Phase 3: Presence helpers
436 | public func setPresence(status: String, activities: [PresenceUpdatePayload.Activity] = [], afk: Bool = false, since: Int? = nil) async {
437 | await gateway.setPresence(status: status, activities: activities, afk: afk, since: since)
| |- warning: sending 'activities' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'activities' to actor-isolated instance method 'setPresence(status:activities:afk:since:)' risks causing data races between actor-isolated and task-isolated uses
438 | }
439 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/DiscordClient.swift:491:28: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
489 | // MARK: - Internal event emission (called by EventDispatcher)
490 | func _internalEmitEvent(_ event: DiscordEvent) {
491 | eventContinuation?.yield(event)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
492 | }
493 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:37:27: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
35 | let enc = JSONEncoder()
36 | let data = try enc.encode(payload)
37 | try await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
38 | }
39 | private var status: Status = .disconnected
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:60:32: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
58 | let payload = GatewayPayload(op: .voiceStateUpdate, d: VoiceStateUpdateData(guild_id: guildId, channel_id: channelId, self_mute: selfMute, self_deaf: selfDeaf), s: nil, t: nil)
59 | if let data = try? JSONEncoder().encode(payload) {
60 | try? await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:85:62: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
83 |
84 | // Receive initial HELLO frame from the gateway
85 | guard case let .string(helloText) = try await socket.receive() else {
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
86 | throw DiscordError.gateway("Expected HELLO string frame")
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:104:30: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
102 | let payload = GatewayPayload(op: .resume, d: resume, s: nil, t: nil)
103 | let data = try enc.encode(payload)
104 | try await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
105 | } else {
106 | self.status = .identifying
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:111:30: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
109 | let payload = GatewayPayload(op: .identify, d: identify, s: nil, t: nil)
110 | let data = try enc.encode(payload)
111 | try await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
112 | }
113 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:115:23: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
113 |
114 | // Start read loop for gateway messages
115 | Task.detached { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
116 | await self?.readLoop(eventSink: eventSink)
| `- note: closure captures 'eventSink' which is accessible to 'self'-isolated code
117 | }
118 | // Wait for READY or RESUMED before returning
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:382:23: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
380 | // Basic reconnect: close existing socket and perform a fresh connect
381 | if !allowReconnect { return }
382 | await socket?.close()
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'close()' risks causing races in between 'self'-isolated and nonisolated uses
383 | socket = nil
384 | heartbeatTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:131:44: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
129 | while true {
130 | do {
131 | let msg = try await socket.receive()
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'receive()' risks causing data races between nonisolated and 'self'-isolated uses
132 | let data: Data
133 | switch msg {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:116:25: warning: sending 'eventSink' risks causing data races; this is an error in the Swift 6 language mode
114 | // Start read loop for gateway messages
115 | Task.detached { [weak self] in
116 | await self?.readLoop(eventSink: eventSink)
| |- warning: sending 'eventSink' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'eventSink' to actor-isolated instance method 'readLoop(eventSink:)' risks causing data races between actor-isolated and task-isolated uses
117 | }
118 | // Wait for READY or RESUMED before returning
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:367:35: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
365 | let payload = GatewayPayload(op: .heartbeat, d: hb, s: nil, t: nil)
366 | let data = try JSONEncoder().encode(payload)
367 | try await socket?.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'send' risks causing races in between 'self'-isolated and nonisolated uses
368 | awaitingHeartbeatAck = true
369 | lastHeartbeatSentAt = Date()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:406:23: warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
404 |
405 | func close() async {
406 | await socket?.close()
| |- warning: sending value of non-Sendable type 'any WebSocketClient' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type 'any WebSocketClient' to nonisolated instance method 'close()' risks causing races in between 'self'-isolated and nonisolated uses
407 | socket = nil
408 | heartbeatTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDisc/Gateway/GatewayClient.swift:419:31: warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
417 | let payload = GatewayPayload(op: .presenceUpdate, d: p, s: nil, t: nil)
418 | if let data = try? JSONEncoder().encode(payload) {
419 | try? await socket.send(.string(String(decoding: data, as: UTF8.self)))
| |- warning: sending 'socket' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'socket' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
420 | }
421 | }
Build complete! (8.44s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftDisc",
"name" : "SwiftDisc",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "SwiftDisc",
"targets" : [
"SwiftDisc"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftDiscTests",
"module_type" : "SwiftTarget",
"name" : "SwiftDiscTests",
"path" : "Tests/SwiftDiscTests",
"sources" : [
"ShardingTests.swift",
"SlashCommandRouterTests.swift",
"SwiftDiscTests.swift"
],
"target_dependencies" : [
"SwiftDisc"
],
"type" : "test"
},
{
"c99name" : "SwiftDisc",
"module_type" : "SwiftTarget",
"name" : "SwiftDisc",
"path" : "Sources/SwiftDisc",
"product_memberships" : [
"SwiftDisc"
],
"sources" : [
"DiscordClient.swift",
"Gateway/GatewayClient.swift",
"Gateway/GatewayModels.swift",
"Gateway/Intents.swift",
"Gateway/WebSocket.swift",
"HighLevel/ActivityBuilder.swift",
"HighLevel/AutocompleteRouter.swift",
"HighLevel/CommandRouter.swift",
"HighLevel/ComponentsBuilder.swift",
"HighLevel/Extensions.swift",
"HighLevel/Permissions.swift",
"HighLevel/ShardManager.swift",
"HighLevel/ShardingGatewayManager.swift",
"HighLevel/SlashCommandBuilder.swift",
"HighLevel/SlashCommandRouter.swift",
"HighLevel/Utilities.swift",
"Internal/Cache.swift",
"Internal/DiscordConfiguration.swift",
"Internal/DiscordError.swift",
"Internal/DiscordUtils.swift",
"Internal/EventDispatcher.swift",
"Internal/JSONValue.swift",
"Models/AdvancedMessagePayloads.swift",
"Models/ApplicationRoleConnection.swift",
"Models/Attachment.swift",
"Models/AuditLog.swift",
"Models/AutoModeration.swift",
"Models/Channel.swift",
"Models/Embed.swift",
"Models/Emoji.swift",
"Models/Files.swift",
"Models/Guild.swift",
"Models/GuildBan.swift",
"Models/GuildMember.swift",
"Models/GuildWidgetSettings.swift",
"Models/Interaction.swift",
"Models/Invite.swift",
"Models/Message.swift",
"Models/MessageComponents.swift",
"Models/PartialGuild.swift",
"Models/PermissionBitset.swift",
"Models/Role.swift",
"Models/ScheduledEvent.swift",
"Models/ScheduledEventUser.swift",
"Models/Snowflake.swift",
"Models/StageInstance.swift",
"Models/Sticker.swift",
"Models/Template.swift",
"Models/Thread.swift",
"Models/User.swift",
"Models/Webhook.swift",
"REST/HTTPClient.swift",
"REST/RateLimiter.swift",
"Voice/AudioSource.swift",
"Voice/PipeOpusSource.swift",
"Voice/Secretbox.swift",
"Voice/VoiceClient.swift",
"Voice/VoiceGateway.swift",
"Voice/VoiceModels.swift",
"Voice/VoiceReceiver.swift",
"Voice/VoiceSender.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.