The Swift Package Index logo.Swift Package Index

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

Build Information

Successful build of discord, reference main (8ecb27), with Swift 6.1 for Linux on 27 Apr 2025 22:43:55 UTC.

Swift 6 data race errors: 31

Build Command

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

Build Log

 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 54 |
 55 |     /// Returns a `Color` with its value set to `0x8f44f2`.
 56 |     public static let purple = Color(value: 0x8f44f2)
    |                       |- warning: static property 'purple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'purple' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |
 58 |     /// Returns a `Color` with its value set to `0xfca7f0`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:59:23: warning: static property 'pink' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 57 |
 58 |     /// Returns a `Color` with its value set to `0xfca7f0`.
 59 |     public static let pink = Color(value: 0xfca7f0)
    |                       |- warning: static property 'pink' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'pink' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// Returns a `Color` with its value set to `0x000001`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:62:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 60 |
 61 |     /// Returns a `Color` with its value set to `0x000001`.
 62 |     public static let black = Color(value: 0x000001)
    |                       |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'black' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |
 64 |     /// Returns a `Color` with its value set to `0xffffff`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:65:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 63 |
 64 |     /// Returns a `Color` with its value set to `0xffffff`.
 65 |     public static let white = Color(value: 0xffffff)
    |                       |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'white' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 66 |
 67 |     /// Returns a `Color` with its value set to `0xa6a6a6`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:68:23: warning: static property 'gray' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 66 |
 67 |     /// Returns a `Color` with its value set to `0xa6a6a6`.
 68 |     public static let gray = Color(value: 0xa6a6a6)
    |                       |- warning: static property 'gray' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'gray' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 |     /// Returns a `Color` with its value set to `0x2f3136`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:71:23: warning: static property 'darkTheme' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 69 |
 70 |     /// Returns a `Color` with its value set to `0x2f3136`.
 71 |     public static let darkTheme = Color(value: 0x2f3136)
    |                       |- warning: static property 'darkTheme' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'darkTheme' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |
 73 |     /// Returns a `Color` with its value set to `0x008080`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:74:23: warning: static property 'teal' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 72 |
 73 |     /// Returns a `Color` with its value set to `0x008080`.
 74 |     public static let teal = Color(value: 0x008080)
    |                       |- warning: static property 'teal' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'teal' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 75 |
 76 |     /// Returns a random `Color`.
/host/spi-builder-workspace/Sources/Discord/Models/Emoji.swift:91:16: warning: static property 'regex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
 89 |     private let guildId: Snowflake
 90 |
 91 |     static let regex = #/<a?:.+?:[0-9]{17,20}>/#
    |                |- warning: static property 'regex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'regex' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 92 |
 93 |     // Hashable
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:189:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
187 |
188 |     /// Enables all intents.
189 |     public static let all = Set<Intents>().union(Intents.allCases)
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 |
191 |     /// All intents enabled except ``dmTyping``, ``guildMessageTyping``, and ``guildPresences``.
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:192:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
190 |
191 |     /// All intents enabled except ``dmTyping``, ``guildMessageTyping``, and ``guildPresences``.
192 |     public static let `default` = Intents.all(except: [.dmTyping, .guildMessageTyping, .guildPresences])
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 |     /// Disables all intents.
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:195:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
193 |
194 |     /// Disables all intents.
195 |     public static let none = Set<Intents>()
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |
197 |     /// Enables all intents except the ones specified.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:870:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
868 |
869 |     /// An `AllowedMentions` object with everything enabled.
870 |     public static let all = AllowedMentions(users: true, roles: true, repliedUser: true, everyone: true)
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
871 |
872 |     /// An `AllowedMentions` object with only `users` and `repliedUser` enabled.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:873:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
871 |
872 |     /// An `AllowedMentions` object with only `users` and `repliedUser` enabled.
873 |     public static let `default` = AllowedMentions(users: true, roles: false, repliedUser: true, everyone: false)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
874 |
875 |     /// An `AllowedMentions` object with everything disabled.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:876:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
874 |
875 |     /// An `AllowedMentions` object with everything disabled.
876 |     public static let none = AllowedMentions(users: false, roles: false, repliedUser: false, everyone: false)
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
877 |
878 |     /// Initializes a new allowed mentions object.
/host/spi-builder-workspace/Sources/Discord/Models/Permissions.swift:178:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Permissions' may have shared mutable state; this is an error in the Swift 6 language mode
141 |
142 | /// Represents the permissions for a channel, user, or guild.
143 | public class Permissions {
    |              `- note: class 'Permissions' does not conform to the 'Sendable' protocol
144 |
145 |     /// The bitset value for the permissions that are enabled/disabled.
    :
176 |     /// - `sendVoiceMessages`
177 |     /// - `requestToSpeak`
178 |     public static let `default` = Permissions(enable: [
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Permissions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
179 |         .viewChannel,
180 |         .createInstantInvite,
/host/spi-builder-workspace/Sources/Discord/Models/Permissions.swift:203:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Permissions' may have shared mutable state; this is an error in the Swift 6 language mode
141 |
142 | /// Represents the permissions for a channel, user, or guild.
143 | public class Permissions {
    |              `- note: class 'Permissions' does not conform to the 'Sendable' protocol
144 |
145 |     /// The bitset value for the permissions that are enabled/disabled.
    :
201 |
202 |     /// Returns a permissions object with all permissions disabled.
203 |     public static let none = Permissions(permsValue: 0)
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Permissions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
204 |
205 |     init(permsValue: Int) {
[2219/2238] Compiling Discord Invite.swift
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:870:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
868 |
869 |     /// An `AllowedMentions` object with everything enabled.
870 |     public static let all = AllowedMentions(users: true, roles: true, repliedUser: true, everyone: true)
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
871 |
872 |     /// An `AllowedMentions` object with only `users` and `repliedUser` enabled.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:873:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
871 |
872 |     /// An `AllowedMentions` object with only `users` and `repliedUser` enabled.
873 |     public static let `default` = AllowedMentions(users: true, roles: false, repliedUser: true, everyone: false)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
874 |
875 |     /// An `AllowedMentions` object with everything disabled.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:876:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
874 |
875 |     /// An `AllowedMentions` object with everything disabled.
876 |     public static let none = AllowedMentions(users: false, roles: false, repliedUser: false, everyone: false)
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
877 |
878 |     /// Initializes a new allowed mentions object.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:491:13: warning: capture of 'self' with non-sendable type 'Message' in a '@Sendable' closure
 27 |
 28 | /// Represents a Discord message.
 29 | public class Message : Object, Hashable, Updateable {
    |              `- note: class 'Message' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// ID of the message.
    :
489 |         cacheExpireScheduler?.cancel()
490 |         cacheExpireScheduler = bot!.loop.scheduleTask(in: .hours(Int64(Message.expireAfter))) {
491 |             self.bot!.removeCachedMessage(self.id)
    |             `- warning: capture of 'self' with non-sendable type 'Message' in a '@Sendable' closure
492 |         }
493 |     }
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:454: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
452 |         let after = max(0, after)
453 |         if after > 0 {
454 |             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
455 |                 await sleep(Int(after * 1000))
456 |
457 |                 // Since this is in the background, the message could have possibly been already deleted, so silently
458 |                 // ignore any errors that may arise.
459 |                 try? await self.bot!.http.deleteMessage(channelId: self.channel.id, messageId: self.id, reason: reason)
    |                            `- note: closure captures 'self' which is accessible to code in the current task
460 |             }
461 |         } else {
[2220/2238] Compiling Discord Member.swift
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:870:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
868 |
869 |     /// An `AllowedMentions` object with everything enabled.
870 |     public static let all = AllowedMentions(users: true, roles: true, repliedUser: true, everyone: true)
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
871 |
872 |     /// An `AllowedMentions` object with only `users` and `repliedUser` enabled.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:873:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
871 |
872 |     /// An `AllowedMentions` object with only `users` and `repliedUser` enabled.
873 |     public static let `default` = AllowedMentions(users: true, roles: false, repliedUser: true, everyone: false)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
874 |
875 |     /// An `AllowedMentions` object with everything disabled.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:876:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
874 |
875 |     /// An `AllowedMentions` object with everything disabled.
876 |     public static let none = AllowedMentions(users: false, roles: false, repliedUser: false, everyone: false)
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
877 |
878 |     /// Initializes a new allowed mentions object.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:491:13: warning: capture of 'self' with non-sendable type 'Message' in a '@Sendable' closure
 27 |
 28 | /// Represents a Discord message.
 29 | public class Message : Object, Hashable, Updateable {
    |              `- note: class 'Message' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// ID of the message.
    :
489 |         cacheExpireScheduler?.cancel()
490 |         cacheExpireScheduler = bot!.loop.scheduleTask(in: .hours(Int64(Message.expireAfter))) {
491 |             self.bot!.removeCachedMessage(self.id)
    |             `- warning: capture of 'self' with non-sendable type 'Message' in a '@Sendable' closure
492 |         }
493 |     }
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:454: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
452 |         let after = max(0, after)
453 |         if after > 0 {
454 |             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
455 |                 await sleep(Int(after * 1000))
456 |
457 |                 // Since this is in the background, the message could have possibly been already deleted, so silently
458 |                 // ignore any errors that may arise.
459 |                 try? await self.bot!.http.deleteMessage(channelId: self.channel.id, messageId: self.id, reason: reason)
    |                            `- note: closure captures 'self' which is accessible to code in the current task
460 |             }
461 |         } else {
[2221/2238] Compiling Discord Message.swift
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:870:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
868 |
869 |     /// An `AllowedMentions` object with everything enabled.
870 |     public static let all = AllowedMentions(users: true, roles: true, repliedUser: true, everyone: true)
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
871 |
872 |     /// An `AllowedMentions` object with only `users` and `repliedUser` enabled.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:873:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
871 |
872 |     /// An `AllowedMentions` object with only `users` and `repliedUser` enabled.
873 |     public static let `default` = AllowedMentions(users: true, roles: false, repliedUser: true, everyone: false)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
874 |
875 |     /// An `AllowedMentions` object with everything disabled.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:876:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
847 |
848 | /// Represents what mentions are allowed in a message.
849 | public struct AllowedMentions {
    |               `- note: consider making struct 'AllowedMentions' conform to the 'Sendable' protocol
850 |
851 |     /// If users can be mentioned in a message.
    :
874 |
875 |     /// An `AllowedMentions` object with everything disabled.
876 |     public static let none = AllowedMentions(users: false, roles: false, repliedUser: false, everyone: false)
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AllowedMentions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
877 |
878 |     /// Initializes a new allowed mentions object.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:491:13: warning: capture of 'self' with non-sendable type 'Message' in a '@Sendable' closure
 27 |
 28 | /// Represents a Discord message.
 29 | public class Message : Object, Hashable, Updateable {
    |              `- note: class 'Message' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// ID of the message.
    :
489 |         cacheExpireScheduler?.cancel()
490 |         cacheExpireScheduler = bot!.loop.scheduleTask(in: .hours(Int64(Message.expireAfter))) {
491 |             self.bot!.removeCachedMessage(self.id)
    |             `- warning: capture of 'self' with non-sendable type 'Message' in a '@Sendable' closure
492 |         }
493 |     }
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
/host/spi-builder-workspace/Sources/Discord/Models/Message.swift:454: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
452 |         let after = max(0, after)
453 |         if after > 0 {
454 |             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
455 |                 await sleep(Int(after * 1000))
456 |
457 |                 // Since this is in the background, the message could have possibly been already deleted, so silently
458 |                 // ignore any errors that may arise.
459 |                 try? await self.bot!.http.deleteMessage(channelId: self.channel.id, messageId: self.id, reason: reason)
    |                            `- note: closure captures 'self' which is accessible to code in the current task
460 |             }
461 |         } else {
[2222/2238] Compiling Discord User.swift
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
[2223/2238] Compiling Discord Webhook.swift
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
[2224/2238] Compiling Discord Utils.swift
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
[2225/2238] Compiling Discord Asset.swift
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
/host/spi-builder-workspace/Sources/Discord/Models/Channel.swift:203:29: 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
 201 |     public func triggerTyping(while: (() async -> Void)? = nil) async throws {
 202 |         if let closure = `while` {
 203 |             let task = 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
 204 |                 while true {
 205 |                     do { try Task.checkCancellation() }
 206 |                     catch { break }
 207 |                     try await bot!.http.triggerTypingIndicator(channelId: id)
     |                               `- note: closure captures 'self' which is accessible to code in the current task
 208 |
 209 |                     // The delay isn't 10s because once it hits the 10s mark, the "is typing"
[2226/2238] Compiling Discord AuditLogs.swift
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
/host/spi-builder-workspace/Sources/Discord/Models/Channel.swift:203:29: 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
 201 |     public func triggerTyping(while: (() async -> Void)? = nil) async throws {
 202 |         if let closure = `while` {
 203 |             let task = 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
 204 |                 while true {
 205 |                     do { try Task.checkCancellation() }
 206 |                     catch { break }
 207 |                     try await bot!.http.triggerTypingIndicator(channelId: id)
     |                               `- note: closure captures 'self' which is accessible to code in the current task
 208 |
 209 |                     // The delay isn't 10s because once it hits the 10s mark, the "is typing"
[2227/2238] Compiling Discord AutoModeration.swift
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
/host/spi-builder-workspace/Sources/Discord/Models/Channel.swift:203:29: 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
 201 |     public func triggerTyping(while: (() async -> Void)? = nil) async throws {
 202 |         if let closure = `while` {
 203 |             let task = 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
 204 |                 while true {
 205 |                     do { try Task.checkCancellation() }
 206 |                     catch { break }
 207 |                     try await bot!.http.triggerTypingIndicator(channelId: id)
     |                               `- note: closure captures 'self' which is accessible to code in the current task
 208 |
 209 |                     // The delay isn't 10s because once it hits the 10s mark, the "is typing"
[2228/2238] Compiling Discord Channel.swift
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
/host/spi-builder-workspace/Sources/Discord/Models/Channel.swift:203:29: 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
 201 |     public func triggerTyping(while: (() async -> Void)? = nil) async throws {
 202 |         if let closure = `while` {
 203 |             let task = 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
 204 |                 while true {
 205 |                     do { try Task.checkCancellation() }
 206 |                     catch { break }
 207 |                     try await bot!.http.triggerTypingIndicator(channelId: id)
     |                               `- note: closure captures 'self' which is accessible to code in the current task
 208 |
 209 |                     // The delay isn't 10s because once it hits the 10s mark, the "is typing"
[2229/2238] Compiling Discord Guild.swift
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:189:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
187 |
188 |     /// Enables all intents.
189 |     public static let all = Set<Intents>().union(Intents.allCases)
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 |
191 |     /// All intents enabled except ``dmTyping``, ``guildMessageTyping``, and ``guildPresences``.
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:192:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
190 |
191 |     /// All intents enabled except ``dmTyping``, ``guildMessageTyping``, and ``guildPresences``.
192 |     public static let `default` = Intents.all(except: [.dmTyping, .guildMessageTyping, .guildPresences])
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 |     /// Disables all intents.
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:195:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
193 |
194 |     /// Disables all intents.
195 |     public static let none = Set<Intents>()
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |
197 |     /// Enables all intents except the ones specified.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
[2230/2238] Compiling Discord Intents.swift
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:189:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
187 |
188 |     /// Enables all intents.
189 |     public static let all = Set<Intents>().union(Intents.allCases)
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 |
191 |     /// All intents enabled except ``dmTyping``, ``guildMessageTyping``, and ``guildPresences``.
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:192:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
190 |
191 |     /// All intents enabled except ``dmTyping``, ``guildMessageTyping``, and ``guildPresences``.
192 |     public static let `default` = Intents.all(except: [.dmTyping, .guildMessageTyping, .guildPresences])
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 |     /// Disables all intents.
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:195:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
193 |
194 |     /// Disables all intents.
195 |     public static let none = Set<Intents>()
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |
197 |     /// Enables all intents except the ones specified.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
[2231/2238] Compiling Discord Interactions.swift
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:189:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
187 |
188 |     /// Enables all intents.
189 |     public static let all = Set<Intents>().union(Intents.allCases)
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 |
191 |     /// All intents enabled except ``dmTyping``, ``guildMessageTyping``, and ``guildPresences``.
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:192:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
190 |
191 |     /// All intents enabled except ``dmTyping``, ``guildMessageTyping``, and ``guildPresences``.
192 |     public static let `default` = Intents.all(except: [.dmTyping, .guildMessageTyping, .guildPresences])
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 |
194 |     /// Disables all intents.
/host/spi-builder-workspace/Sources/Discord/Models/Intents.swift:195:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents Discords events that are dispatched.
 26 | public enum Intents : Int, CaseIterable {
    |             `- note: consider making enum 'Intents' conform to the 'Sendable' protocol
 27 |
 28 |     /// Enabling this intent allows the following events to be dispatched:
    :
193 |
194 |     /// Disables all intents.
195 |     public static let none = Set<Intents>()
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Set<Intents>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |
197 |     /// Enables all intents except the ones specified.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
[2232/2238] Compiling Discord Color.swift
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:29:23: warning: static property 'blurple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
 29 |     public static let blurple = Color(value: 0x5865f2)
    |                       |- warning: static property 'blurple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'blurple' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 |     /// Returns a `Color` with its value set to `0xeb459e`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:32:23: warning: static property 'fuchsia' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 30 |
 31 |     /// Returns a `Color` with its value set to `0xeb459e`.
 32 |     public static let fuchsia = Color(value: 0xeb459e)
    |                       |- warning: static property 'fuchsia' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'fuchsia' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     /// Returns a `Color` with its value set to `0xfc0303`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:35:23: warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 33 |
 34 |     /// Returns a `Color` with its value set to `0xfc0303`.
 35 |     public static let red = Color(value: 0xfc0303)
    |                       |- warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'red' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 |
 37 |     /// Returns a `Color` with its value set to `0xff992b`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:38:23: warning: static property 'orange' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 36 |
 37 |     /// Returns a `Color` with its value set to `0xff992b`.
 38 |     public static let orange = Color(value: 0xff992b)
    |                       |- warning: static property 'orange' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'orange' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     /// Returns a `Color` with its value set to `0xffdc2b`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:41:23: warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 39 |
 40 |     /// Returns a `Color` with its value set to `0xffdc2b`.
 41 |     public static let yellow = Color(value: 0xffdc2b)
    |                       |- warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'yellow' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |
 43 |     /// Returns a `Color` with its value set to `0x2bff32`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:44:23: warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 42 |
 43 |     /// Returns a `Color` with its value set to `0x2bff32`.
 44 |     public static let green = Color(value: 0x2bff32)
    |                       |- warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'green' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |
 46 |     /// Returns a `Color` with its value set to `0x026105`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:47:23: warning: static property 'darkGreen' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 45 |
 46 |     /// Returns a `Color` with its value set to `0x026105`.
 47 |     public static let darkGreen = Color(value: 0x026105)
    |                       |- warning: static property 'darkGreen' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'darkGreen' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 48 |
 49 |     /// Returns a `Color` with its value set to `0x36b1d6`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:50:23: warning: static property 'skyBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 48 |
 49 |     /// Returns a `Color` with its value set to `0x36b1d6`.
 50 |     public static let skyBlue = Color(value: 0x36b1d6)
    |                       |- warning: static property 'skyBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'skyBlue' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |
 52 |     /// Returns a `Color` with its value set to `0x1021e3`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:53:23: warning: static property 'darkBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 51 |
 52 |     /// Returns a `Color` with its value set to `0x1021e3`.
 53 |     public static let darkBlue = Color(value: 0x1021e3)
    |                       |- warning: static property 'darkBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'darkBlue' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 54 |
 55 |     /// Returns a `Color` with its value set to `0x8f44f2`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:56:23: warning: static property 'purple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 54 |
 55 |     /// Returns a `Color` with its value set to `0x8f44f2`.
 56 |     public static let purple = Color(value: 0x8f44f2)
    |                       |- warning: static property 'purple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'purple' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |
 58 |     /// Returns a `Color` with its value set to `0xfca7f0`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:59:23: warning: static property 'pink' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 57 |
 58 |     /// Returns a `Color` with its value set to `0xfca7f0`.
 59 |     public static let pink = Color(value: 0xfca7f0)
    |                       |- warning: static property 'pink' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'pink' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// Returns a `Color` with its value set to `0x000001`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:62:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 60 |
 61 |     /// Returns a `Color` with its value set to `0x000001`.
 62 |     public static let black = Color(value: 0x000001)
    |                       |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'black' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |
 64 |     /// Returns a `Color` with its value set to `0xffffff`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:65:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 63 |
 64 |     /// Returns a `Color` with its value set to `0xffffff`.
 65 |     public static let white = Color(value: 0xffffff)
    |                       |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'white' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 66 |
 67 |     /// Returns a `Color` with its value set to `0xa6a6a6`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:68:23: warning: static property 'gray' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 66 |
 67 |     /// Returns a `Color` with its value set to `0xa6a6a6`.
 68 |     public static let gray = Color(value: 0xa6a6a6)
    |                       |- warning: static property 'gray' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'gray' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 |     /// Returns a `Color` with its value set to `0x2f3136`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:71:23: warning: static property 'darkTheme' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 69 |
 70 |     /// Returns a `Color` with its value set to `0x2f3136`.
 71 |     public static let darkTheme = Color(value: 0x2f3136)
    |                       |- warning: static property 'darkTheme' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'darkTheme' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |
 73 |     /// Returns a `Color` with its value set to `0x008080`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:74:23: warning: static property 'teal' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 72 |
 73 |     /// Returns a `Color` with its value set to `0x008080`.
 74 |     public static let teal = Color(value: 0x008080)
    |                       |- warning: static property 'teal' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'teal' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 75 |
 76 |     /// Returns a random `Color`.
/host/spi-builder-workspace/Sources/Discord/Models/Components.swift:164:26: warning: capture of 'self' with non-sendable type 'UI' in a '@Sendable' closure
 50 |
 51 | /// Represents the UI components on a message such as a ``Button`` or ``SelectMenu``.
 52 | public class UI {
    |              `- note: class 'UI' does not conform to the 'Sendable' protocol
 53 |
 54 |     /// The components that make up the UI.
    :
162 |         scheduler?.cancel()
163 |         scheduler = elg.any().scheduleTask(in: .seconds(Int64(timeout)), {
164 |             Task { await self.onTimeout(self.attachedMessage) }
    |                          `- warning: capture of 'self' with non-sendable type 'UI' in a '@Sendable' closure
165 |         })
166 |     }
/host/spi-builder-workspace/Sources/Discord/Models/Components.swift:164:26: warning: capture of 'self' with non-sendable type 'UI' in an isolated closure; this is an error in the Swift 6 language mode
 50 |
 51 | /// Represents the UI components on a message such as a ``Button`` or ``SelectMenu``.
 52 | public class UI {
    |              `- note: class 'UI' does not conform to the 'Sendable' protocol
 53 |
 54 |     /// The components that make up the UI.
    :
162 |         scheduler?.cancel()
163 |         scheduler = elg.any().scheduleTask(in: .seconds(Int64(timeout)), {
164 |             Task { await self.onTimeout(self.attachedMessage) }
    |                          `- warning: capture of 'self' with non-sendable type 'UI' in an isolated closure; this is an error in the Swift 6 language mode
165 |         })
166 |     }
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
[2233/2238] Compiling Discord Components.swift
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:29:23: warning: static property 'blurple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
 29 |     public static let blurple = Color(value: 0x5865f2)
    |                       |- warning: static property 'blurple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'blurple' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 |     /// Returns a `Color` with its value set to `0xeb459e`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:32:23: warning: static property 'fuchsia' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 30 |
 31 |     /// Returns a `Color` with its value set to `0xeb459e`.
 32 |     public static let fuchsia = Color(value: 0xeb459e)
    |                       |- warning: static property 'fuchsia' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'fuchsia' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     /// Returns a `Color` with its value set to `0xfc0303`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:35:23: warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 33 |
 34 |     /// Returns a `Color` with its value set to `0xfc0303`.
 35 |     public static let red = Color(value: 0xfc0303)
    |                       |- warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'red' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 |
 37 |     /// Returns a `Color` with its value set to `0xff992b`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:38:23: warning: static property 'orange' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 36 |
 37 |     /// Returns a `Color` with its value set to `0xff992b`.
 38 |     public static let orange = Color(value: 0xff992b)
    |                       |- warning: static property 'orange' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'orange' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     /// Returns a `Color` with its value set to `0xffdc2b`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:41:23: warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 39 |
 40 |     /// Returns a `Color` with its value set to `0xffdc2b`.
 41 |     public static let yellow = Color(value: 0xffdc2b)
    |                       |- warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'yellow' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |
 43 |     /// Returns a `Color` with its value set to `0x2bff32`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:44:23: warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 42 |
 43 |     /// Returns a `Color` with its value set to `0x2bff32`.
 44 |     public static let green = Color(value: 0x2bff32)
    |                       |- warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'green' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |
 46 |     /// Returns a `Color` with its value set to `0x026105`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:47:23: warning: static property 'darkGreen' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 45 |
 46 |     /// Returns a `Color` with its value set to `0x026105`.
 47 |     public static let darkGreen = Color(value: 0x026105)
    |                       |- warning: static property 'darkGreen' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'darkGreen' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 48 |
 49 |     /// Returns a `Color` with its value set to `0x36b1d6`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:50:23: warning: static property 'skyBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 48 |
 49 |     /// Returns a `Color` with its value set to `0x36b1d6`.
 50 |     public static let skyBlue = Color(value: 0x36b1d6)
    |                       |- warning: static property 'skyBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'skyBlue' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |
 52 |     /// Returns a `Color` with its value set to `0x1021e3`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:53:23: warning: static property 'darkBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 51 |
 52 |     /// Returns a `Color` with its value set to `0x1021e3`.
 53 |     public static let darkBlue = Color(value: 0x1021e3)
    |                       |- warning: static property 'darkBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'darkBlue' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 54 |
 55 |     /// Returns a `Color` with its value set to `0x8f44f2`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:56:23: warning: static property 'purple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 54 |
 55 |     /// Returns a `Color` with its value set to `0x8f44f2`.
 56 |     public static let purple = Color(value: 0x8f44f2)
    |                       |- warning: static property 'purple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'purple' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |
 58 |     /// Returns a `Color` with its value set to `0xfca7f0`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:59:23: warning: static property 'pink' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 57 |
 58 |     /// Returns a `Color` with its value set to `0xfca7f0`.
 59 |     public static let pink = Color(value: 0xfca7f0)
    |                       |- warning: static property 'pink' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'pink' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// Returns a `Color` with its value set to `0x000001`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:62:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 60 |
 61 |     /// Returns a `Color` with its value set to `0x000001`.
 62 |     public static let black = Color(value: 0x000001)
    |                       |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'black' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |
 64 |     /// Returns a `Color` with its value set to `0xffffff`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:65:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 63 |
 64 |     /// Returns a `Color` with its value set to `0xffffff`.
 65 |     public static let white = Color(value: 0xffffff)
    |                       |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'white' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 66 |
 67 |     /// Returns a `Color` with its value set to `0xa6a6a6`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:68:23: warning: static property 'gray' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 66 |
 67 |     /// Returns a `Color` with its value set to `0xa6a6a6`.
 68 |     public static let gray = Color(value: 0xa6a6a6)
    |                       |- warning: static property 'gray' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'gray' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 |     /// Returns a `Color` with its value set to `0x2f3136`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:71:23: warning: static property 'darkTheme' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 69 |
 70 |     /// Returns a `Color` with its value set to `0x2f3136`.
 71 |     public static let darkTheme = Color(value: 0x2f3136)
    |                       |- warning: static property 'darkTheme' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'darkTheme' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |
 73 |     /// Returns a `Color` with its value set to `0x008080`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:74:23: warning: static property 'teal' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 72 |
 73 |     /// Returns a `Color` with its value set to `0x008080`.
 74 |     public static let teal = Color(value: 0x008080)
    |                       |- warning: static property 'teal' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'teal' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 75 |
 76 |     /// Returns a random `Color`.
/host/spi-builder-workspace/Sources/Discord/Models/Components.swift:164:26: warning: capture of 'self' with non-sendable type 'UI' in a '@Sendable' closure
 50 |
 51 | /// Represents the UI components on a message such as a ``Button`` or ``SelectMenu``.
 52 | public class UI {
    |              `- note: class 'UI' does not conform to the 'Sendable' protocol
 53 |
 54 |     /// The components that make up the UI.
    :
162 |         scheduler?.cancel()
163 |         scheduler = elg.any().scheduleTask(in: .seconds(Int64(timeout)), {
164 |             Task { await self.onTimeout(self.attachedMessage) }
    |                          `- warning: capture of 'self' with non-sendable type 'UI' in a '@Sendable' closure
165 |         })
166 |     }
/host/spi-builder-workspace/Sources/Discord/Models/Components.swift:164:26: warning: capture of 'self' with non-sendable type 'UI' in an isolated closure; this is an error in the Swift 6 language mode
 50 |
 51 | /// Represents the UI components on a message such as a ``Button`` or ``SelectMenu``.
 52 | public class UI {
    |              `- note: class 'UI' does not conform to the 'Sendable' protocol
 53 |
 54 |     /// The components that make up the UI.
    :
162 |         scheduler?.cancel()
163 |         scheduler = elg.any().scheduleTask(in: .seconds(Int64(timeout)), {
164 |             Task { await self.onTimeout(self.attachedMessage) }
    |                          `- warning: capture of 'self' with non-sendable type 'UI' in an isolated closure; this is an error in the Swift 6 language mode
165 |         })
166 |     }
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
[2234/2238] Compiling Discord Embed.swift
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:29:23: warning: static property 'blurple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
 29 |     public static let blurple = Color(value: 0x5865f2)
    |                       |- warning: static property 'blurple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'blurple' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 |     /// Returns a `Color` with its value set to `0xeb459e`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:32:23: warning: static property 'fuchsia' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 30 |
 31 |     /// Returns a `Color` with its value set to `0xeb459e`.
 32 |     public static let fuchsia = Color(value: 0xeb459e)
    |                       |- warning: static property 'fuchsia' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'fuchsia' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     /// Returns a `Color` with its value set to `0xfc0303`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:35:23: warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 33 |
 34 |     /// Returns a `Color` with its value set to `0xfc0303`.
 35 |     public static let red = Color(value: 0xfc0303)
    |                       |- warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'red' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 |
 37 |     /// Returns a `Color` with its value set to `0xff992b`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:38:23: warning: static property 'orange' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 36 |
 37 |     /// Returns a `Color` with its value set to `0xff992b`.
 38 |     public static let orange = Color(value: 0xff992b)
    |                       |- warning: static property 'orange' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'orange' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 |     /// Returns a `Color` with its value set to `0xffdc2b`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:41:23: warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 39 |
 40 |     /// Returns a `Color` with its value set to `0xffdc2b`.
 41 |     public static let yellow = Color(value: 0xffdc2b)
    |                       |- warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'yellow' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |
 43 |     /// Returns a `Color` with its value set to `0x2bff32`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:44:23: warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 42 |
 43 |     /// Returns a `Color` with its value set to `0x2bff32`.
 44 |     public static let green = Color(value: 0x2bff32)
    |                       |- warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'green' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |
 46 |     /// Returns a `Color` with its value set to `0x026105`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:47:23: warning: static property 'darkGreen' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 45 |
 46 |     /// Returns a `Color` with its value set to `0x026105`.
 47 |     public static let darkGreen = Color(value: 0x026105)
    |                       |- warning: static property 'darkGreen' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'darkGreen' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 48 |
 49 |     /// Returns a `Color` with its value set to `0x36b1d6`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:50:23: warning: static property 'skyBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 48 |
 49 |     /// Returns a `Color` with its value set to `0x36b1d6`.
 50 |     public static let skyBlue = Color(value: 0x36b1d6)
    |                       |- warning: static property 'skyBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'skyBlue' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |
 52 |     /// Returns a `Color` with its value set to `0x1021e3`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:53:23: warning: static property 'darkBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 51 |
 52 |     /// Returns a `Color` with its value set to `0x1021e3`.
 53 |     public static let darkBlue = Color(value: 0x1021e3)
    |                       |- warning: static property 'darkBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'darkBlue' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 54 |
 55 |     /// Returns a `Color` with its value set to `0x8f44f2`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:56:23: warning: static property 'purple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 54 |
 55 |     /// Returns a `Color` with its value set to `0x8f44f2`.
 56 |     public static let purple = Color(value: 0x8f44f2)
    |                       |- warning: static property 'purple' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'purple' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |
 58 |     /// Returns a `Color` with its value set to `0xfca7f0`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:59:23: warning: static property 'pink' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 57 |
 58 |     /// Returns a `Color` with its value set to `0xfca7f0`.
 59 |     public static let pink = Color(value: 0xfca7f0)
    |                       |- warning: static property 'pink' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'pink' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// Returns a `Color` with its value set to `0x000001`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:62:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 60 |
 61 |     /// Returns a `Color` with its value set to `0x000001`.
 62 |     public static let black = Color(value: 0x000001)
    |                       |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'black' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |
 64 |     /// Returns a `Color` with its value set to `0xffffff`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:65:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 63 |
 64 |     /// Returns a `Color` with its value set to `0xffffff`.
 65 |     public static let white = Color(value: 0xffffff)
    |                       |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'white' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 66 |
 67 |     /// Returns a `Color` with its value set to `0xa6a6a6`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:68:23: warning: static property 'gray' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 66 |
 67 |     /// Returns a `Color` with its value set to `0xa6a6a6`.
 68 |     public static let gray = Color(value: 0xa6a6a6)
    |                       |- warning: static property 'gray' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'gray' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 |     /// Returns a `Color` with its value set to `0x2f3136`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:71:23: warning: static property 'darkTheme' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 69 |
 70 |     /// Returns a `Color` with its value set to `0x2f3136`.
 71 |     public static let darkTheme = Color(value: 0x2f3136)
    |                       |- warning: static property 'darkTheme' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'darkTheme' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |
 73 |     /// Returns a `Color` with its value set to `0x008080`.
/host/spi-builder-workspace/Sources/Discord/Models/Color.swift:74:23: warning: static property 'teal' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | /// Represents a color on Discord.
 26 | public struct Color : Hashable {
    |               `- note: consider making struct 'Color' conform to the 'Sendable' protocol
 27 |
 28 |     /// Returns a `Color` with its value set to `0x5865f2`.
    :
 72 |
 73 |     /// Returns a `Color` with its value set to `0x008080`.
 74 |     public static let teal = Color(value: 0x008080)
    |                       |- warning: static property 'teal' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'teal' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 75 |
 76 |     /// Returns a random `Color`.
/host/spi-builder-workspace/Sources/Discord/Models/Components.swift:164:26: warning: capture of 'self' with non-sendable type 'UI' in a '@Sendable' closure
 50 |
 51 | /// Represents the UI components on a message such as a ``Button`` or ``SelectMenu``.
 52 | public class UI {
    |              `- note: class 'UI' does not conform to the 'Sendable' protocol
 53 |
 54 |     /// The components that make up the UI.
    :
162 |         scheduler?.cancel()
163 |         scheduler = elg.any().scheduleTask(in: .seconds(Int64(timeout)), {
164 |             Task { await self.onTimeout(self.attachedMessage) }
    |                          `- warning: capture of 'self' with non-sendable type 'UI' in a '@Sendable' closure
165 |         })
166 |     }
/host/spi-builder-workspace/Sources/Discord/Models/Components.swift:164:26: warning: capture of 'self' with non-sendable type 'UI' in an isolated closure; this is an error in the Swift 6 language mode
 50 |
 51 | /// Represents the UI components on a message such as a ``Button`` or ``SelectMenu``.
 52 | public class UI {
    |              `- note: class 'UI' does not conform to the 'Sendable' protocol
 53 |
 54 |     /// The components that make up the UI.
    :
162 |         scheduler?.cancel()
163 |         scheduler = elg.any().scheduleTask(in: .seconds(Int64(timeout)), {
164 |             Task { await self.onTimeout(self.attachedMessage) }
    |                          `- warning: capture of 'self' with non-sendable type 'UI' in an isolated closure; this is an error in the Swift 6 language mode
165 |         })
166 |     }
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
[2235/2238] Compiling Discord Discord.swift
/host/spi-builder-workspace/Sources/Discord/Discord.swift:59:23: warning: static property 'allowedMentions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 57 |
 58 |     /// The global allowed mentions.
 59 |     public static var allowedMentions = AllowedMentions.default
    |                       |- warning: static property 'allowedMentions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'allowedMentions' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'allowedMentions' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// Controls what will/won't be cached.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:657:23: warning: static property 'scaled' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
657 |     public static let scaled = CacheManager(messages: 10_000, users: true, members: true)
    |                       |- warning: static property 'scaled' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'scaled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
658 |
659 |     /// Has all caching capabilities enabled and a max message cache size of 1,500.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:660:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
658 |
659 |     /// Has all caching capabilities enabled and a max message cache size of 1,500.
660 |     public static let `default` = CacheManager(messages: 1500, users: true, members: true)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
661 |
662 |     /// Has `users` caching capabilities disabled and a max message cache size of 500.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:663:23: warning: static property 'limited' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
661 |
662 |     /// Has `users` caching capabilities disabled and a max message cache size of 500.
663 |     public static let limited = CacheManager(messages: 500, users: false, members: true)
    |                       |- warning: static property 'limited' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'limited' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
664 |
665 |     /// Has all caching capabilities disabled and a max message cache size of 100.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:666:23: warning: static property 'restricted' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
664 |
665 |     /// Has all caching capabilities disabled and a max message cache size of 100.
666 |     public static let restricted = CacheManager(messages: 100, users: false, members: false)
    |                       |- warning: static property 'restricted' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'restricted' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
667 |
668 |     /// Has all caching capabilities disabled and a max message cache size of 0.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:669:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
667 |
668 |     /// Has all caching capabilities disabled and a max message cache size of 0.
669 |     public static let none = CacheManager(messages: 0, users: false, members: false)
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
670 |
671 |     /// The amount of messages that are allowed to be cached.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:351:28: warning: capture of 'self' with non-sendable type 'Bot' in a '@Sendable' closure
 27 |
 28 | /// Represents a Discord bot.
 29 | public class Bot {
    |              `- note: class 'Bot' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// Version of the library.
    :
349 |         if !isConnected {
350 |             try! loop.makeFutureWithTask {
351 |                 try! await self.gw.startNewSession()
    |                            `- warning: capture of 'self' with non-sendable type 'Bot' in a '@Sendable' closure
352 |             }.wait()
353 |             if let onceExecute {
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:198:17: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 196 |             on: elg,
 197 |             onUpgrade: { socket in
 198 |                 self.websocketSetup(websocket: socket)
     |                 `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 199 |                 Log.message("[Reconnect] connection successful - sending RESUME payload...")
 200 |                 self.sendFrame(resumePayload)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:200:32: warning: capture of 'resumePayload' with non-sendable type 'JSON' (aka 'Dictionary<String, Any>') in a '@Sendable' closure
 198 |                 self.websocketSetup(websocket: socket)
 199 |                 Log.message("[Reconnect] connection successful - sending RESUME payload...")
 200 |                 self.sendFrame(resumePayload)
     |                                `- warning: capture of 'resumePayload' with non-sendable type 'JSON' (aka 'Dictionary<String, Any>') in a '@Sendable' closure
 201 |             }
 202 |         ).get()
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:210:45: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 208 |         receive()
 209 |         connectionOpen = true
 210 |         ws.onClose.whenComplete { _ in try! self.websocketClosed() }
     |                                             `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 211 |     }
 212 |
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:218:13: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 216 |         heartbeatTask?.cancel()
 217 |         heartbeatTask = loop.scheduleRepeatedTask(initialDelay: .seconds(10), delay: .milliseconds(Int64(heartbeatInterval)), { _ in
 218 |             self.sendHeartbeat()
     |             `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 219 |         })
 220 |     }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:236:16: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 234 |             guard let _ = try? Task.checkCancellation() else { return }
 235 |             // There's a chance the connection could be closed mid sleep, so only execute if it's open
 236 |             if self.connectionOpen {
     |                `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 237 |                 Log.message("client did not receive HEARTBEAT ACK after a heartbeat was sent - reconnecting...")
 238 |                 self.newConnection(type: .reconnect)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:263:23: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 261 |             switch type {
 262 |             case .reconnect:
 263 |                 await self.reconnect()
     |                       `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 264 |             case .session:
 265 |                 try! await self.startNewSession()
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:300:17: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 298 |             on: elg,
 299 |             onUpgrade: { socket in
 300 |                 self.websocketSetup(websocket: socket)
     |                 `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 301 |                 Log.message("gateway connection established - receiver & onClose set")
 302 |             }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:375:21: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |                     `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:375:21: warning: capture of 'self' with non-sendable type 'Gateway' in an isolated local function; this is an error in the Swift 6 language mode
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |                     `- warning: capture of 'self' with non-sendable type 'Gateway' in an isolated local function; this is an error in the Swift 6 language mode
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:395:31: warning: capture of 'self' with non-sendable type 'Gateway' in an isolated closure; this is an error in the Swift 6 language mode
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 393 |                     else { wsResume?.sequence = gatewayPayload.s! }
 394 |                     Task {
 395 |                         await dispatchAndUpdate(event: event, data: gatewayPayload.d!)
     |                               `- warning: capture of 'self' with non-sendable type 'Gateway' in an isolated closure; this is an error in the Swift 6 language mode
 396 |                     }
 397 |                 }
/host/spi-builder-workspace/Sources/Discord/Discord.swift:354: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
352 |             }.wait()
353 |             if let onceExecute {
354 |                 Task { await onceExecute() }
    |                      |       `- note: closure captures 'onceExecute' which is accessible to code in the current task
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 |                 self.onceExecute = nil
356 |             }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:394:21: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |             `- note: access can happen concurrently
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
     :
 392 |                     }
 393 |                     else { wsResume?.sequence = gatewayPayload.s! }
 394 |                     Task {
     |                     |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                     `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
 395 |                         await dispatchAndUpdate(event: event, data: gatewayPayload.d!)
 396 |                     }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:915: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
 913 |             let interaction = Interaction(bot: bot, interactionData: data)
 914 |             dispatch({ await $0.onInteractionCreate(interaction: interaction) })
 915 |             Task { await handleInteractions(interaction: interaction) }
     |                  |       `- note: closure captures 'self' which is accessible to code in the current task
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 916 |
 917 |         case .inviteCreate:
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:1417: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
1415 |         for element in self {
1416 |             guard element.isEnabled else { continue }
1417 |             Task { await operation(element) }
     |                  |       |         `- note: closure captures non-Sendable 'element'
     |                  |       `- note: closure captures non-Sendable 'operation'
     |                  `- 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
1418 |         }
1419 |     }
[2236/2238] Compiling Discord Gateway.swift
/host/spi-builder-workspace/Sources/Discord/Discord.swift:59:23: warning: static property 'allowedMentions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 57 |
 58 |     /// The global allowed mentions.
 59 |     public static var allowedMentions = AllowedMentions.default
    |                       |- warning: static property 'allowedMentions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'allowedMentions' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'allowedMentions' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// Controls what will/won't be cached.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:657:23: warning: static property 'scaled' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
657 |     public static let scaled = CacheManager(messages: 10_000, users: true, members: true)
    |                       |- warning: static property 'scaled' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'scaled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
658 |
659 |     /// Has all caching capabilities enabled and a max message cache size of 1,500.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:660:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
658 |
659 |     /// Has all caching capabilities enabled and a max message cache size of 1,500.
660 |     public static let `default` = CacheManager(messages: 1500, users: true, members: true)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
661 |
662 |     /// Has `users` caching capabilities disabled and a max message cache size of 500.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:663:23: warning: static property 'limited' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
661 |
662 |     /// Has `users` caching capabilities disabled and a max message cache size of 500.
663 |     public static let limited = CacheManager(messages: 500, users: false, members: true)
    |                       |- warning: static property 'limited' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'limited' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
664 |
665 |     /// Has all caching capabilities disabled and a max message cache size of 100.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:666:23: warning: static property 'restricted' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
664 |
665 |     /// Has all caching capabilities disabled and a max message cache size of 100.
666 |     public static let restricted = CacheManager(messages: 100, users: false, members: false)
    |                       |- warning: static property 'restricted' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'restricted' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
667 |
668 |     /// Has all caching capabilities disabled and a max message cache size of 0.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:669:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
667 |
668 |     /// Has all caching capabilities disabled and a max message cache size of 0.
669 |     public static let none = CacheManager(messages: 0, users: false, members: false)
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
670 |
671 |     /// The amount of messages that are allowed to be cached.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:351:28: warning: capture of 'self' with non-sendable type 'Bot' in a '@Sendable' closure
 27 |
 28 | /// Represents a Discord bot.
 29 | public class Bot {
    |              `- note: class 'Bot' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// Version of the library.
    :
349 |         if !isConnected {
350 |             try! loop.makeFutureWithTask {
351 |                 try! await self.gw.startNewSession()
    |                            `- warning: capture of 'self' with non-sendable type 'Bot' in a '@Sendable' closure
352 |             }.wait()
353 |             if let onceExecute {
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:198:17: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 196 |             on: elg,
 197 |             onUpgrade: { socket in
 198 |                 self.websocketSetup(websocket: socket)
     |                 `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 199 |                 Log.message("[Reconnect] connection successful - sending RESUME payload...")
 200 |                 self.sendFrame(resumePayload)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:200:32: warning: capture of 'resumePayload' with non-sendable type 'JSON' (aka 'Dictionary<String, Any>') in a '@Sendable' closure
 198 |                 self.websocketSetup(websocket: socket)
 199 |                 Log.message("[Reconnect] connection successful - sending RESUME payload...")
 200 |                 self.sendFrame(resumePayload)
     |                                `- warning: capture of 'resumePayload' with non-sendable type 'JSON' (aka 'Dictionary<String, Any>') in a '@Sendable' closure
 201 |             }
 202 |         ).get()
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:210:45: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 208 |         receive()
 209 |         connectionOpen = true
 210 |         ws.onClose.whenComplete { _ in try! self.websocketClosed() }
     |                                             `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 211 |     }
 212 |
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:218:13: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 216 |         heartbeatTask?.cancel()
 217 |         heartbeatTask = loop.scheduleRepeatedTask(initialDelay: .seconds(10), delay: .milliseconds(Int64(heartbeatInterval)), { _ in
 218 |             self.sendHeartbeat()
     |             `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 219 |         })
 220 |     }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:236:16: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 234 |             guard let _ = try? Task.checkCancellation() else { return }
 235 |             // There's a chance the connection could be closed mid sleep, so only execute if it's open
 236 |             if self.connectionOpen {
     |                `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 237 |                 Log.message("client did not receive HEARTBEAT ACK after a heartbeat was sent - reconnecting...")
 238 |                 self.newConnection(type: .reconnect)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:263:23: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 261 |             switch type {
 262 |             case .reconnect:
 263 |                 await self.reconnect()
     |                       `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 264 |             case .session:
 265 |                 try! await self.startNewSession()
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:300:17: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 298 |             on: elg,
 299 |             onUpgrade: { socket in
 300 |                 self.websocketSetup(websocket: socket)
     |                 `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 301 |                 Log.message("gateway connection established - receiver & onClose set")
 302 |             }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:375:21: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |                     `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:375:21: warning: capture of 'self' with non-sendable type 'Gateway' in an isolated local function; this is an error in the Swift 6 language mode
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |                     `- warning: capture of 'self' with non-sendable type 'Gateway' in an isolated local function; this is an error in the Swift 6 language mode
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:395:31: warning: capture of 'self' with non-sendable type 'Gateway' in an isolated closure; this is an error in the Swift 6 language mode
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 393 |                     else { wsResume?.sequence = gatewayPayload.s! }
 394 |                     Task {
 395 |                         await dispatchAndUpdate(event: event, data: gatewayPayload.d!)
     |                               `- warning: capture of 'self' with non-sendable type 'Gateway' in an isolated closure; this is an error in the Swift 6 language mode
 396 |                     }
 397 |                 }
/host/spi-builder-workspace/Sources/Discord/Discord.swift:354: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
352 |             }.wait()
353 |             if let onceExecute {
354 |                 Task { await onceExecute() }
    |                      |       `- note: closure captures 'onceExecute' which is accessible to code in the current task
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 |                 self.onceExecute = nil
356 |             }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:394:21: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |             `- note: access can happen concurrently
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
     :
 392 |                     }
 393 |                     else { wsResume?.sequence = gatewayPayload.s! }
 394 |                     Task {
     |                     |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                     `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
 395 |                         await dispatchAndUpdate(event: event, data: gatewayPayload.d!)
 396 |                     }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:915: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
 913 |             let interaction = Interaction(bot: bot, interactionData: data)
 914 |             dispatch({ await $0.onInteractionCreate(interaction: interaction) })
 915 |             Task { await handleInteractions(interaction: interaction) }
     |                  |       `- note: closure captures 'self' which is accessible to code in the current task
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 916 |
 917 |         case .inviteCreate:
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:1417: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
1415 |         for element in self {
1416 |             guard element.isEnabled else { continue }
1417 |             Task { await operation(element) }
     |                  |       |         `- note: closure captures non-Sendable 'element'
     |                  |       `- note: closure captures non-Sendable 'operation'
     |                  `- 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
1418 |         }
1419 |     }
[2237/2238] Compiling Discord Http.swift
/host/spi-builder-workspace/Sources/Discord/Discord.swift:59:23: warning: static property 'allowedMentions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 57 |
 58 |     /// The global allowed mentions.
 59 |     public static var allowedMentions = AllowedMentions.default
    |                       |- warning: static property 'allowedMentions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'allowedMentions' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'allowedMentions' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// Controls what will/won't be cached.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:657:23: warning: static property 'scaled' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
657 |     public static let scaled = CacheManager(messages: 10_000, users: true, members: true)
    |                       |- warning: static property 'scaled' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'scaled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
658 |
659 |     /// Has all caching capabilities enabled and a max message cache size of 1,500.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:660:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
658 |
659 |     /// Has all caching capabilities enabled and a max message cache size of 1,500.
660 |     public static let `default` = CacheManager(messages: 1500, users: true, members: true)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
661 |
662 |     /// Has `users` caching capabilities disabled and a max message cache size of 500.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:663:23: warning: static property 'limited' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
661 |
662 |     /// Has `users` caching capabilities disabled and a max message cache size of 500.
663 |     public static let limited = CacheManager(messages: 500, users: false, members: true)
    |                       |- warning: static property 'limited' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'limited' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
664 |
665 |     /// Has all caching capabilities disabled and a max message cache size of 100.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:666:23: warning: static property 'restricted' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
664 |
665 |     /// Has all caching capabilities disabled and a max message cache size of 100.
666 |     public static let restricted = CacheManager(messages: 100, users: false, members: false)
    |                       |- warning: static property 'restricted' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'restricted' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
667 |
668 |     /// Has all caching capabilities disabled and a max message cache size of 0.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:669:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
667 |
668 |     /// Has all caching capabilities disabled and a max message cache size of 0.
669 |     public static let none = CacheManager(messages: 0, users: false, members: false)
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
670 |
671 |     /// The amount of messages that are allowed to be cached.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:351:28: warning: capture of 'self' with non-sendable type 'Bot' in a '@Sendable' closure
 27 |
 28 | /// Represents a Discord bot.
 29 | public class Bot {
    |              `- note: class 'Bot' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// Version of the library.
    :
349 |         if !isConnected {
350 |             try! loop.makeFutureWithTask {
351 |                 try! await self.gw.startNewSession()
    |                            `- warning: capture of 'self' with non-sendable type 'Bot' in a '@Sendable' closure
352 |             }.wait()
353 |             if let onceExecute {
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:198:17: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 196 |             on: elg,
 197 |             onUpgrade: { socket in
 198 |                 self.websocketSetup(websocket: socket)
     |                 `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 199 |                 Log.message("[Reconnect] connection successful - sending RESUME payload...")
 200 |                 self.sendFrame(resumePayload)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:200:32: warning: capture of 'resumePayload' with non-sendable type 'JSON' (aka 'Dictionary<String, Any>') in a '@Sendable' closure
 198 |                 self.websocketSetup(websocket: socket)
 199 |                 Log.message("[Reconnect] connection successful - sending RESUME payload...")
 200 |                 self.sendFrame(resumePayload)
     |                                `- warning: capture of 'resumePayload' with non-sendable type 'JSON' (aka 'Dictionary<String, Any>') in a '@Sendable' closure
 201 |             }
 202 |         ).get()
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:210:45: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 208 |         receive()
 209 |         connectionOpen = true
 210 |         ws.onClose.whenComplete { _ in try! self.websocketClosed() }
     |                                             `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 211 |     }
 212 |
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:218:13: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 216 |         heartbeatTask?.cancel()
 217 |         heartbeatTask = loop.scheduleRepeatedTask(initialDelay: .seconds(10), delay: .milliseconds(Int64(heartbeatInterval)), { _ in
 218 |             self.sendHeartbeat()
     |             `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 219 |         })
 220 |     }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:236:16: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 234 |             guard let _ = try? Task.checkCancellation() else { return }
 235 |             // There's a chance the connection could be closed mid sleep, so only execute if it's open
 236 |             if self.connectionOpen {
     |                `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 237 |                 Log.message("client did not receive HEARTBEAT ACK after a heartbeat was sent - reconnecting...")
 238 |                 self.newConnection(type: .reconnect)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:263:23: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 261 |             switch type {
 262 |             case .reconnect:
 263 |                 await self.reconnect()
     |                       `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 264 |             case .session:
 265 |                 try! await self.startNewSession()
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:300:17: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 298 |             on: elg,
 299 |             onUpgrade: { socket in
 300 |                 self.websocketSetup(websocket: socket)
     |                 `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 301 |                 Log.message("gateway connection established - receiver & onClose set")
 302 |             }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:375:21: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |                     `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:375:21: warning: capture of 'self' with non-sendable type 'Gateway' in an isolated local function; this is an error in the Swift 6 language mode
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |                     `- warning: capture of 'self' with non-sendable type 'Gateway' in an isolated local function; this is an error in the Swift 6 language mode
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:395:31: warning: capture of 'self' with non-sendable type 'Gateway' in an isolated closure; this is an error in the Swift 6 language mode
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 393 |                     else { wsResume?.sequence = gatewayPayload.s! }
 394 |                     Task {
 395 |                         await dispatchAndUpdate(event: event, data: gatewayPayload.d!)
     |                               `- warning: capture of 'self' with non-sendable type 'Gateway' in an isolated closure; this is an error in the Swift 6 language mode
 396 |                     }
 397 |                 }
/host/spi-builder-workspace/Sources/Discord/Discord.swift:354: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
352 |             }.wait()
353 |             if let onceExecute {
354 |                 Task { await onceExecute() }
    |                      |       `- note: closure captures 'onceExecute' which is accessible to code in the current task
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 |                 self.onceExecute = nil
356 |             }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:394:21: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |             `- note: access can happen concurrently
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
     :
 392 |                     }
 393 |                     else { wsResume?.sequence = gatewayPayload.s! }
 394 |                     Task {
     |                     |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                     `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
 395 |                         await dispatchAndUpdate(event: event, data: gatewayPayload.d!)
 396 |                     }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:915: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
 913 |             let interaction = Interaction(bot: bot, interactionData: data)
 914 |             dispatch({ await $0.onInteractionCreate(interaction: interaction) })
 915 |             Task { await handleInteractions(interaction: interaction) }
     |                  |       `- note: closure captures 'self' which is accessible to code in the current task
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 916 |
 917 |         case .inviteCreate:
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:1417: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
1415 |         for element in self {
1416 |             guard element.isEnabled else { continue }
1417 |             Task { await operation(element) }
     |                  |       |         `- note: closure captures non-Sendable 'element'
     |                  |       `- note: closure captures non-Sendable 'operation'
     |                  `- 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
1418 |         }
1419 |     }
[2238/2238] Compiling Discord Application.swift
/host/spi-builder-workspace/Sources/Discord/Discord.swift:59:23: warning: static property 'allowedMentions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 57 |
 58 |     /// The global allowed mentions.
 59 |     public static var allowedMentions = AllowedMentions.default
    |                       |- warning: static property 'allowedMentions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'allowedMentions' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'allowedMentions' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 60 |
 61 |     /// Controls what will/won't be cached.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:97:29: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 95 |     private let msgCacheLock = NSLock()
 96 |     private let sema = DispatchSemaphore(value: 0)
 97 |     private let app = Vapor.Application()
    |                             `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
 98 |
 99 |     /// Initializes the Discord bot.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:657:23: warning: static property 'scaled' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
657 |     public static let scaled = CacheManager(messages: 10_000, users: true, members: true)
    |                       |- warning: static property 'scaled' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'scaled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
658 |
659 |     /// Has all caching capabilities enabled and a max message cache size of 1,500.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:660:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
658 |
659 |     /// Has all caching capabilities enabled and a max message cache size of 1,500.
660 |     public static let `default` = CacheManager(messages: 1500, users: true, members: true)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
661 |
662 |     /// Has `users` caching capabilities disabled and a max message cache size of 500.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:663:23: warning: static property 'limited' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
661 |
662 |     /// Has `users` caching capabilities disabled and a max message cache size of 500.
663 |     public static let limited = CacheManager(messages: 500, users: false, members: true)
    |                       |- warning: static property 'limited' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'limited' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
664 |
665 |     /// Has all caching capabilities disabled and a max message cache size of 100.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:666:23: warning: static property 'restricted' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
664 |
665 |     /// Has all caching capabilities disabled and a max message cache size of 100.
666 |     public static let restricted = CacheManager(messages: 100, users: false, members: false)
    |                       |- warning: static property 'restricted' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'restricted' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
667 |
668 |     /// Has all caching capabilities disabled and a max message cache size of 0.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:669:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
652 |
653 | /// Represents what the bot is permitted to cache.
654 | public struct CacheManager {
    |               `- note: consider making struct 'CacheManager' conform to the 'Sendable' protocol
655 |
656 |     /// Has all caching capabilities enabled and a max message cache size of 10,000.
    :
667 |
668 |     /// Has all caching capabilities disabled and a max message cache size of 0.
669 |     public static let none = CacheManager(messages: 0, users: false, members: false)
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'CacheManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
670 |
671 |     /// The amount of messages that are allowed to be cached.
/host/spi-builder-workspace/Sources/Discord/Discord.swift:351:28: warning: capture of 'self' with non-sendable type 'Bot' in a '@Sendable' closure
 27 |
 28 | /// Represents a Discord bot.
 29 | public class Bot {
    |              `- note: class 'Bot' does not conform to the 'Sendable' protocol
 30 |
 31 |     /// Version of the library.
    :
349 |         if !isConnected {
350 |             try! loop.makeFutureWithTask {
351 |                 try! await self.gw.startNewSession()
    |                            `- warning: capture of 'self' with non-sendable type 'Bot' in a '@Sendable' closure
352 |             }.wait()
353 |             if let onceExecute {
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:198:17: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 196 |             on: elg,
 197 |             onUpgrade: { socket in
 198 |                 self.websocketSetup(websocket: socket)
     |                 `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 199 |                 Log.message("[Reconnect] connection successful - sending RESUME payload...")
 200 |                 self.sendFrame(resumePayload)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:200:32: warning: capture of 'resumePayload' with non-sendable type 'JSON' (aka 'Dictionary<String, Any>') in a '@Sendable' closure
 198 |                 self.websocketSetup(websocket: socket)
 199 |                 Log.message("[Reconnect] connection successful - sending RESUME payload...")
 200 |                 self.sendFrame(resumePayload)
     |                                `- warning: capture of 'resumePayload' with non-sendable type 'JSON' (aka 'Dictionary<String, Any>') in a '@Sendable' closure
 201 |             }
 202 |         ).get()
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:210:45: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 208 |         receive()
 209 |         connectionOpen = true
 210 |         ws.onClose.whenComplete { _ in try! self.websocketClosed() }
     |                                             `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 211 |     }
 212 |
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:218:13: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 216 |         heartbeatTask?.cancel()
 217 |         heartbeatTask = loop.scheduleRepeatedTask(initialDelay: .seconds(10), delay: .milliseconds(Int64(heartbeatInterval)), { _ in
 218 |             self.sendHeartbeat()
     |             `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 219 |         })
 220 |     }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:236:16: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 234 |             guard let _ = try? Task.checkCancellation() else { return }
 235 |             // There's a chance the connection could be closed mid sleep, so only execute if it's open
 236 |             if self.connectionOpen {
     |                `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 237 |                 Log.message("client did not receive HEARTBEAT ACK after a heartbeat was sent - reconnecting...")
 238 |                 self.newConnection(type: .reconnect)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:263:23: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 261 |             switch type {
 262 |             case .reconnect:
 263 |                 await self.reconnect()
     |                       `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 264 |             case .session:
 265 |                 try! await self.startNewSession()
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:300:17: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 298 |             on: elg,
 299 |             onUpgrade: { socket in
 300 |                 self.websocketSetup(websocket: socket)
     |                 `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 301 |                 Log.message("gateway connection established - receiver & onClose set")
 302 |             }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:375:21: warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |                     `- warning: capture of 'self' with non-sendable type 'Gateway' in a '@Sendable' closure
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:375:21: warning: capture of 'self' with non-sendable type 'Gateway' in an isolated local function; this is an error in the Swift 6 language mode
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |                     `- warning: capture of 'self' with non-sendable type 'Gateway' in an isolated local function; this is an error in the Swift 6 language mode
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:395:31: warning: capture of 'self' with non-sendable type 'Gateway' in an isolated closure; this is an error in the Swift 6 language mode
 143 | }
 144 |
 145 | class Gateway {
     |       `- note: class 'Gateway' does not conform to the 'Sendable' protocol
 146 |
 147 |     var ws: WebSocket!
     :
 393 |                     else { wsResume?.sequence = gatewayPayload.s! }
 394 |                     Task {
 395 |                         await dispatchAndUpdate(event: event, data: gatewayPayload.d!)
     |                               `- warning: capture of 'self' with non-sendable type 'Gateway' in an isolated closure; this is an error in the Swift 6 language mode
 396 |                     }
 397 |                 }
/host/spi-builder-workspace/Sources/Discord/Discord.swift:354: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
352 |             }.wait()
353 |             if let onceExecute {
354 |                 Task { await onceExecute() }
    |                      |       `- note: closure captures 'onceExecute' which is accessible to code in the current task
    |                      `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 |                 self.onceExecute = nil
356 |             }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:394:21: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
 373 |     private func receive() {
 374 |         ws.onText { [unowned self] (_, message) in
 375 |             defer { receive() }
     |             `- note: access can happen concurrently
 376 |
 377 |             let resumePayload = HTTPClient.strJsonToDict(message)
     :
 392 |                     }
 393 |                     else { wsResume?.sequence = gatewayPayload.s! }
 394 |                     Task {
     |                     |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |                     `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
 395 |                         await dispatchAndUpdate(event: event, data: gatewayPayload.d!)
 396 |                     }
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:915: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
 913 |             let interaction = Interaction(bot: bot, interactionData: data)
 914 |             dispatch({ await $0.onInteractionCreate(interaction: interaction) })
 915 |             Task { await handleInteractions(interaction: interaction) }
     |                  |       `- note: closure captures 'self' which is accessible to code in the current task
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 916 |
 917 |         case .inviteCreate:
/host/spi-builder-workspace/Sources/Discord/Gateway.swift:1417: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
1415 |         for element in self {
1416 |             guard element.isEnabled else { continue }
1417 |             Task { await operation(element) }
     |                  |       |         `- note: closure captures non-Sendable 'element'
     |                  |       `- note: closure captures non-Sendable 'operation'
     |                  `- 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
1418 |         }
1419 |     }
Build complete! (329.23s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "websocket-kit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.14.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/websocket-kit.git"
    },
    {
      "identity" : "vapor",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.84.3",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/vapor.git"
    }
  ],
  "manifest_display_name" : "discord",
  "name" : "discord",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Discord",
      "targets" : [
        "Discord"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DiscordTests",
      "module_type" : "SwiftTarget",
      "name" : "DiscordTests",
      "path" : "Tests/DiscordTests",
      "sources" : [
        "DiscordTests.swift"
      ],
      "target_dependencies" : [
        "Discord"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Discord",
      "module_type" : "SwiftTarget",
      "name" : "Discord",
      "path" : "Sources/Discord",
      "product_dependencies" : [
        "WebSocketKit",
        "Vapor"
      ],
      "product_memberships" : [
        "Discord"
      ],
      "sources" : [
        "Discord.swift",
        "Gateway.swift",
        "Http.swift",
        "Models/Application.swift",
        "Models/Asset.swift",
        "Models/AuditLogs.swift",
        "Models/AutoModeration.swift",
        "Models/Channel.swift",
        "Models/Color.swift",
        "Models/Components.swift",
        "Models/Embed.swift",
        "Models/Emoji.swift",
        "Models/Error.swift",
        "Models/File.swift",
        "Models/Guild.swift",
        "Models/Intents.swift",
        "Models/Interactions.swift",
        "Models/Invite.swift",
        "Models/Member.swift",
        "Models/Message.swift",
        "Models/Permissions.swift",
        "Models/Role.swift",
        "Models/Sticker.swift",
        "Models/User.swift",
        "Models/Webhook.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.