Build Information
Failed to build DiscordKit, reference main (2da56f
), with Swift 6.1 for Linux on 27 Apr 2025 12:46:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
16 | ///
17 | /// > The guild's ID is its key
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
| `- error: unknown attribute 'Published'
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
| `- error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
23 | @Published public private(set) var dms: [Channel] = []
| `- error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
26 | @Published public private(set) var user: CurrentUser?
| `- error: unknown attribute 'Published'
27 |
28 | /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
28 | /// Cached users, initially populated from `READY` event and might
29 | /// grow over time
30 | @Published public private(set) var users: [Snowflake: User] = [:]
| `- error: unknown attribute 'Published'
31 |
32 | /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
12 | ///
13 | /// Used in ``DiscordGateway/cache``.
14 | public class CachedState: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
15 | /// Dictionary of guilds the user is in
16 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:35:22: error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
33 | /// - Parameter event: An incoming Gateway "ready" event.
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
| `- error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
36 | dms = event.private_channels
37 | user = event.user
:
47 | /// Updates or appends the provided guild.
48 | /// - Parameter guild: The guild you want to update or append to the cache.
49 | func appendOrReplace(_ guild: PreloadedGuild) {
| `- note: found candidate with type '(PreloadedGuild) -> ()'
50 | guilds.updateValue(guild, forKey: guild.id)
51 | }
:
100 | /// Appends or replaces the given message within the appropriate channel.
101 | /// - Parameter message: The message to append.
102 | func appendOrReplace(_ message: Message) {
| `- note: found candidate with type '(Message) -> ()'
103 | if let idx = dms.firstIndex(where: { $0.id == message.channel_id }) {
104 | dms[idx].last_message_id = message.id
:
110 | /// Appends or replaces the provided user in the cache.
111 | /// - Parameter user: The user to cache.
112 | func appendOrReplace(_ user: User) {
| `- note: found candidate with type '(User) -> ()'
113 | users.updateValue(user, forKey: user.id)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:36:13: error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
36 | dms = event.private_channels
| |- error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
| `- note: arguments to generic parameter 'Element' ('DecodeThrowable<Channel>' and 'Channel') are expected to be equal
37 | user = event.user
38 | event.users.forEach(appendOrReplace(_:))
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:40:39: error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
38 | event.users.forEach(appendOrReplace(_:))
39 | event.merged_members.enumerated().forEach { (idx, guildMembers) in
40 | members[event.guilds[idx].id] = guildMembers.first(where: { $0.user_id == event.user.id })
| `- error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
41 | }
42 | print(members)
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
62 | /// - Parameter channel: The channel to append.
63 | func append(_ channel: Channel) {
64 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
65 | return
66 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
72 | /// - Parameter channel: The channel to remove.
73 | func remove(_ channel: Channel) {
74 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
75 | return
76 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
42 | /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
43 | /// > stale UI issues (i.e. stale UI)
44 | @Published public var cache: CachedState = CachedState()
| `- error: unknown attribute 'Published'
45 |
46 | /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
47 | ///
48 | /// Contains a dict of user presences, keyed by their respective user IDs
49 | @Published public var presences: [Snowflake: Presence] = [:]
| `- error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
52 | @Published public var guildFolders: [GuildFolderItem] = []
| `- error: unknown attribute 'Published'
53 |
54 | /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
55 | ///
56 | /// Includes both single DMs and group DMs
57 | @Published public var privateChannels: [Channel] = []
| `- error: unknown attribute 'Published'
58 |
59 | /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
58 |
59 | /// Read state
60 | @Published public var readState: [Snowflake: ReadState.Entry] = [:]
| `- error: unknown attribute 'Published'
61 |
62 | private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
67 | ///
68 | /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
69 | @Published public var connected = false
| `- error: unknown attribute 'Published'
70 | /// If the network is reachable (has network connectivity)
71 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
71 | ///
72 | /// `@Published` proxy of ``RobustWebSocket/reachable``
73 | @Published public var reachable = false
| `- error: unknown attribute 'Published'
74 |
75 | // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
18 | ///
19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
20 | public class DiscordGateway: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
21 | // Events
22 | /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:112:15: error: value of type 'CachedState' has no member 'objectWillChange'
110 | // Clear cache
111 | cache = CachedState()
112 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
113 | socket?.close(code: .normalClosure)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
194 |
195 | private func handleGuildUpdate(_ updatedGuild: Guild) {
196 | guard let existingGuild = cache.guilds[updatedGuild.id] else {
| `- warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
197 | return
198 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:200:13: warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
198 | }
199 |
200 | var modifiedGuild = updatedGuild
| `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
201 |
202 | // ``GatewayEvent.guildUpdate`` events are missing data that is only present in the initial ``GatewayEvent.ready`` event, so we need to copy those properties over manually.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:221:28: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
219 | let settings: Discord_UserSettings
220 | do {
221 | settings = try Discord_UserSettings(serializedData: Data(base64Encoded: proto)!)
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
222 | } catch {
223 | log.error("Proto decode error! \(String(describing: error))")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:303:15: error: value of type 'CachedState' has no member 'objectWillChange'
301 | }
302 |
303 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
304 | onEvent.notify(event: data)
305 | log.trace("[EVENT] Dispatched event")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
16 | ///
17 | /// > The guild's ID is its key
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
| `- error: unknown attribute 'Published'
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
| `- error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
23 | @Published public private(set) var dms: [Channel] = []
| `- error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
26 | @Published public private(set) var user: CurrentUser?
| `- error: unknown attribute 'Published'
27 |
28 | /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
28 | /// Cached users, initially populated from `READY` event and might
29 | /// grow over time
30 | @Published public private(set) var users: [Snowflake: User] = [:]
| `- error: unknown attribute 'Published'
31 |
32 | /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
12 | ///
13 | /// Used in ``DiscordGateway/cache``.
14 | public class CachedState: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
15 | /// Dictionary of guilds the user is in
16 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:35:22: error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
33 | /// - Parameter event: An incoming Gateway "ready" event.
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
| `- error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
36 | dms = event.private_channels
37 | user = event.user
:
47 | /// Updates or appends the provided guild.
48 | /// - Parameter guild: The guild you want to update or append to the cache.
49 | func appendOrReplace(_ guild: PreloadedGuild) {
| `- note: found candidate with type '(PreloadedGuild) -> ()'
50 | guilds.updateValue(guild, forKey: guild.id)
51 | }
:
100 | /// Appends or replaces the given message within the appropriate channel.
101 | /// - Parameter message: The message to append.
102 | func appendOrReplace(_ message: Message) {
| `- note: found candidate with type '(Message) -> ()'
103 | if let idx = dms.firstIndex(where: { $0.id == message.channel_id }) {
104 | dms[idx].last_message_id = message.id
:
110 | /// Appends or replaces the provided user in the cache.
111 | /// - Parameter user: The user to cache.
112 | func appendOrReplace(_ user: User) {
| `- note: found candidate with type '(User) -> ()'
113 | users.updateValue(user, forKey: user.id)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:36:13: error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
36 | dms = event.private_channels
| |- error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
| `- note: arguments to generic parameter 'Element' ('DecodeThrowable<Channel>' and 'Channel') are expected to be equal
37 | user = event.user
38 | event.users.forEach(appendOrReplace(_:))
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:40:39: error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
38 | event.users.forEach(appendOrReplace(_:))
39 | event.merged_members.enumerated().forEach { (idx, guildMembers) in
40 | members[event.guilds[idx].id] = guildMembers.first(where: { $0.user_id == event.user.id })
| `- error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
41 | }
42 | print(members)
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
62 | /// - Parameter channel: The channel to append.
63 | func append(_ channel: Channel) {
64 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
65 | return
66 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
72 | /// - Parameter channel: The channel to remove.
73 | func remove(_ channel: Channel) {
74 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
75 | return
76 | }
/host/spi-builder-workspace/Sources/DiscordKit/protos/DiscordProtos.pb.swift:243:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
223 | ]
224 |
225 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
226 | var _versions: Discord_UserSettings.Versions? = nil
227 | var _inbox: InboxSettings? = nil
:
241 | var _audioContextSettings: AudioSettings? = nil
242 |
243 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 | private init() {}
/host/spi-builder-workspace/Sources/DiscordKit/protos/DiscordProtos.pb.swift:243:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
223 | ]
224 |
225 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
226 | var _versions: Discord_UserSettings.Versions? = nil
227 | var _inbox: InboxSettings? = nil
:
241 | var _audioContextSettings: AudioSettings? = nil
242 |
243 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 | private init() {}
/host/spi-builder-workspace/Sources/DiscordKit/protos/DiscordProtos.pb.swift:243:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
223 | ]
224 |
225 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
226 | var _versions: Discord_UserSettings.Versions? = nil
227 | var _inbox: InboxSettings? = nil
:
241 | var _audioContextSettings: AudioSettings? = nil
242 |
243 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Discord_UserSettings._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
244 |
245 | private init() {}
Running build ...
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 2>&1
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
warning: 'reachability.swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/Reachability.swift/Sources/Info.plist
[0/1] Planning build
[1/1] Compiling plugin SwiftProtobufPlugin
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
Building for debugging...
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/184] Compiling _NIODataStructures PriorityQueue.swift
[6/203] Compiling Logging MetadataProvider.swift
[7/203] Compiling _NIODataStructures Heap.swift
[8/203] Emitting module _NIODataStructures
[9/204] Compiling BitByteData SignedNumberRepresentation.swift
[11/205] Compiling Logging Locks.swift
[12/205] Emitting module Logging
[13/205] Compiling BitByteData MsbBitWriter.swift
[14/205] Compiling NIOConcurrencyHelpers lock.swift
[15/205] Compiling SwiftProtobuf CustomJSONCodable.swift
[16/205] Compiling SwiftProtobuf Decoder.swift
[17/205] Compiling BitByteData resource_bundle_accessor.swift
[18/205] Emitting module NIOConcurrencyHelpers
[19/205] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[20/205] Compiling NIOConcurrencyHelpers atomics.swift
[22/206] Emitting module BitByteData
[23/206] Compiling SwiftProtobuf ExtensibleMessage.swift
[24/206] Compiling SwiftProtobuf ExtensionFieldValueSet.swift
[25/206] Compiling SwiftProtobuf ExtensionFields.swift
[26/206] Compiling SwiftProtobuf ExtensionMap.swift
[27/206] Compiling SwiftProtobuf DoubleParser.swift
[28/206] Compiling SwiftProtobuf Enum.swift
[29/206] Compiling BitByteData MsbBitReader.swift
[31/207] Compiling Logging Logging.swift
[32/207] Compiling Logging LogHandler.swift
[34/252] Compiling NIOCore AddressedEnvelope.swift
[35/252] Compiling NIOCore AsyncAwaitSupport+OldXcodes.swift
[36/252] Compiling NIOCore AsyncAwaitSupport.swift
[37/252] Compiling NIOCore BSDSocketAPI.swift
[38/252] Compiling NIOCore ByteBuffer-aux.swift
[39/252] Compiling NIOCore ByteBuffer-conversions.swift
[40/252] Compiling NIOCore ByteBuffer-core.swift
[41/252] Compiling NIOCore ByteBuffer-int.swift
[42/252] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[43/252] Compiling NIOCore ByteBuffer-multi-int.swift
[44/252] Compiling NIOCore ByteBuffer-views.swift
[45/252] Compiling NIOCore Channel.swift
[46/252] Compiling NIOCore ChannelHandler.swift
[47/355] Compiling SWCompression DataError.swift
[48/355] Compiling SWCompression DecompressionAlgorithm.swift
[49/355] Compiling SWCompression LZ4+Compress.swift
[50/355] Compiling SWCompression LZ4.swift
[51/355] Compiling SWCompression XxHash32.swift
[52/355] Compiling SWCompression LZMA.swift
[53/355] Compiling SWCompression CodeLength.swift
[54/355] Compiling SWCompression DecodingTree.swift
[55/355] Compiling SWCompression EncodingTree.swift
[56/355] Compiling SWCompression CompressionAlgorithm.swift
[57/355] Compiling SWCompression CompressionMethod.swift
[58/355] Compiling SWCompression Container.swift
[59/355] Compiling SWCompression ContainerEntry.swift
[60/355] Compiling SWCompression ContainerEntryInfo.swift
[61/355] Compiling SWCompression ContainerEntryType.swift
[62/355] Compiling SWCompression DosAttributes.swift
[63/355] Compiling SWCompression Permissions.swift
[66/373] Emitting module OpenCombine
[67/373] Compiling SWCompression ZipEndOfCentralDirectory.swift
[68/373] Compiling SWCompression ZipEntry.swift
[69/373] Compiling SWCompression ZipEntryInfo.swift
[70/373] Compiling SWCompression ZipEntryInfoHelper.swift
[71/373] Compiling SWCompression ZipError.swift
[72/373] Compiling SWCompression ZipExtraField.swift
[73/373] Compiling SWCompression ZipLocalHeader.swift
[74/373] Compiling SWCompression ZlibArchive.swift
[75/373] Compiling SWCompression ZlibError.swift
[76/373] Compiling SWCompression ZlibHeader.swift
[77/373] Compiling SWCompression resource_bundle_accessor.swift
[78/373] Compiling OpenCombine _Introspection.swift
[79/373] Compiling SWCompression BZip2.swift
[80/373] Compiling SWCompression BZip2Error.swift
[81/373] Compiling SWCompression BurrowsWheeler.swift
[82/373] Compiling SWCompression SuffixArray.swift
[83/373] Compiling SWCompression Archive.swift
[84/373] Compiling SWCompression CheckSums.swift
[85/373] Compiling SWCompression 7zSubstreamInfo.swift
[86/373] Compiling SWCompression CompressionMethod+7z.swift
[87/373] Compiling SWCompression MsbBitReader+7z.swift
[88/373] Compiling SWCompression BZip2+BlockSize.swift
[89/373] Compiling SWCompression BZip2+Compress.swift
[90/373] Compiling SWCompression BZip2+Lengths.swift
[97/373] Compiling SWCompression Code.swift
[98/373] Compiling NIOCore Utilities.swift
[99/373] Compiling SWCompression LZMARangeDecoder.swift
[100/373] Compiling SWCompression LZMA2.swift
[101/373] Compiling SWCompression LZMA2Decoder.swift
[102/373] Compiling SWCompression DeltaFilter.swift
[103/373] Compiling SWCompression Extensions.swift
[104/373] Compiling SWCompression FileSystemType.swift
[105/373] Compiling SWCompression Deflate+Compress.swift
[106/373] Compiling SWCompression Deflate+Constants.swift
[107/373] Compiling SWCompression Deflate+Lengths.swift
[108/373] Compiling SWCompression Deflate.swift
[109/373] Compiling SWCompression DeflateError.swift
[110/384] Emitting module SWCompression
[123/384] Emitting module SwiftProtobuf
[124/384] Compiling SWCompression 7zCoder+Equatable.swift
[125/384] Compiling SWCompression 7zCoder.swift
[126/384] Compiling SWCompression 7zCoderInfo.swift
[127/384] Compiling SWCompression 7zContainer.swift
[128/384] Compiling SWCompression 7zEntry.swift
[129/384] Compiling SWCompression 7zEntryInfo.swift
[130/384] Compiling SWCompression 7zError.swift
[135/384] Compiling NIOCore SocketAddresses.swift
[136/384] Compiling NIOCore SocketOptionProvider.swift
[137/384] Compiling NIOCore SystemCallHelpers.swift
[138/384] Compiling NIOCore TypeAssistedChannelHandler.swift
[139/384] Compiling NIOCore UniversalBootstrapSupport.swift
[165/384] Compiling SWCompression FileSystemType+Gzip.swift
[166/384] Compiling SWCompression GzipArchive.swift
[167/384] Compiling SWCompression GzipError.swift
[168/384] Compiling SWCompression GzipHeader+ExtraField.swift
[169/384] Compiling SWCompression GzipHeader.swift
[176/384] Compiling SwiftProtobuf type.pb.swift
[177/384] Compiling SwiftProtobuf wrappers.pb.swift
[178/384] Compiling SwiftProtobuf resource_bundle_accessor.swift
[208/384] Compiling SWCompression 7zFileInfo.swift
[209/384] Compiling SWCompression 7zFolder.swift
[210/384] Compiling SWCompression 7zHeader.swift
[211/384] Compiling SWCompression 7zPackInfo.swift
[212/384] Compiling SWCompression 7zProperty.swift
[213/384] Compiling SWCompression 7zStreamInfo.swift
[238/384] Compiling SWCompression TarWriter.swift
[239/384] Compiling SWCompression ByteReader+XZ.swift
[240/384] Compiling SWCompression Sha256.swift
[241/384] Compiling SWCompression XZArchive.swift
[242/384] Compiling SWCompression XZBlock.swift
[243/384] Compiling SWCompression XZError.swift
[244/384] Compiling SWCompression XZStreamHeader.swift
[245/384] Compiling SWCompression BuiltinExtraFields.swift
[246/384] Compiling SWCompression CompressionMethod+Zip.swift
[247/384] Compiling SWCompression FileSystemType+Zip.swift
[248/384] Compiling SWCompression LittleEndianByteReader+Zip.swift
[249/384] Compiling SWCompression ZipCentralDirectoryEntry.swift
[250/384] Compiling SWCompression LZMA2Error.swift
[251/384] Compiling SWCompression ContainerEntryType+Tar.swift
[252/384] Compiling SWCompression Data+Tar.swift
[253/384] Compiling SWCompression LittleEndianByteReader+Tar.swift
[254/384] Compiling SWCompression TarContainer.swift
[255/384] Compiling SwiftProtobuf api.pb.swift
[256/384] Compiling SwiftProtobuf descriptor.pb.swift
[257/384] Compiling SwiftProtobuf duration.pb.swift
[258/384] Compiling SwiftProtobuf empty.pb.swift
[259/384] Compiling SwiftProtobuf field_mask.pb.swift
[260/384] Compiling SwiftProtobuf source_context.pb.swift
[261/384] Compiling SwiftProtobuf struct.pb.swift
[262/384] Compiling SwiftProtobuf timestamp.pb.swift
[348/396] Compiling OpenCombineFoundation PropertyListEncoder.swift
[349/397] Emitting module OpenCombineFoundation
[350/397] Compiling OpenCombineFoundation Locking.swift
[351/397] Compiling OpenCombineFoundation Portability.swift
[352/397] Compiling OpenCombineFoundation Timer+Publisher.swift
[353/397] Compiling OpenCombineFoundation RunLoop+Scheduler.swift
[354/397] Emitting module NIOCore
[356/398] Compiling OpenCombineFoundation Utils.swift
[357/398] Compiling OpenCombineFoundation Violations.swift
[358/398] Compiling OpenCombineFoundation OperationQueue+Scheduler.swift
[359/398] Compiling OpenCombineFoundation JSONEncoder.swift
[360/398] Compiling OpenCombineFoundation NotificationCenter.swift
[361/398] Compiling OpenCombineFoundation URLSession.swift
[402/443] Compiling NIOEmbedded Embedded.swift
[403/443] Emitting module NIOEmbedded
[405/444] Compiling NIOPosix SelectorUring.swift
[406/444] Compiling NIOPosix ServerSocket.swift
[407/444] Compiling NIOPosix Socket.swift
[408/444] Compiling NIOPosix SocketChannel.swift
[409/444] Compiling NIOPosix SocketProtocols.swift
[410/449] Emitting module NIOPosix
[411/449] Compiling NIOPosix HappyEyeballs.swift
[412/449] Compiling NIOPosix IO.swift
[413/449] Compiling NIOPosix IntegerBitPacking.swift
[414/449] Compiling NIOPosix IntegerTypes.swift
[415/449] Compiling NIOPosix Linux.swift
[416/449] Compiling NIOPosix LinuxCPUSet.swift
[417/449] Compiling NIOPosix LinuxUring.swift
[418/449] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[419/449] Compiling NIOPosix NIOThreadPool.swift
[420/449] Compiling NIOPosix NonBlockingFileIO.swift
[421/449] Compiling NIOPosix PendingDatagramWritesManager.swift
[422/449] Compiling NIOPosix PendingWritesManager.swift
[423/449] Compiling NIOPosix BaseStreamSocketChannel.swift
[424/449] Compiling NIOPosix Bootstrap.swift
[425/449] Compiling NIOPosix ControlMessage.swift
[426/449] Compiling NIOPosix DatagramVectorReadManager.swift
[427/449] Compiling NIOPosix FileDescriptor.swift
[428/449] Compiling NIOPosix GetaddrinfoResolver.swift
[429/449] Compiling NIOPosix PipeChannel.swift
[430/449] Compiling NIOPosix PipePair.swift
[431/449] Compiling NIOPosix PointerHelpers.swift
[432/449] Compiling NIOPosix Resolver.swift
[433/449] Compiling NIOPosix Selectable.swift
[434/449] Compiling NIOPosix BSDSocketAPICommon.swift
[435/449] Compiling NIOPosix BSDSocketAPIPosix.swift
[436/449] Compiling NIOPosix BSDSocketAPIWindows.swift
[437/449] Compiling NIOPosix BaseSocket.swift
[438/449] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[439/449] Compiling NIOPosix BaseSocketChannel.swift
[440/449] Compiling NIOPosix SelectableChannel.swift
[441/449] Compiling NIOPosix SelectableEventLoop.swift
[442/449] Compiling NIOPosix SelectorEpoll.swift
[443/449] Compiling NIOPosix SelectorGeneric.swift
[444/449] Compiling NIOPosix SelectorKqueue.swift
[445/449] Compiling NIOPosix System.swift
[446/449] Compiling NIOPosix Thread.swift
[447/449] Compiling NIOPosix ThreadPosix.swift
[448/449] Compiling NIOPosix ThreadWindows.swift
[449/449] Compiling NIOPosix Utilities.swift
[451/452] Compiling NIO Exports.swift
[452/452] Emitting module NIO
[454/471] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[455/471] Compiling NIOTLS TLSEvents.swift
[456/471] Emitting module NIOFoundationCompat
[457/471] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[458/471] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[459/472] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[461/473] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[462/473] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[463/473] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
[464/473] Emitting module NIOTLS
[465/473] Compiling NIOTLS SNIHandler.swift
[466/474] Compiling NIOHTTP1 HTTPEncoder.swift
[467/474] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[469/474] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[470/474] Compiling NIOHTTP1 ByteCollectionUtils.swift
[471/474] Compiling NIOHTTP1 HTTPDecoder.swift
[472/474] Emitting module NIOHTTP1
[473/490] Compiling NIOHTTP1 HTTPTypes.swift
[474/490] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[476/507] Compiling NIOWebSocket NIOWebSocketServerUpgrader.swift
[477/507] Compiling NIOWebSocket SHA1.swift
[478/507] Compiling NIOWebSocket WebSocketErrorCodes.swift
[479/510] Compiling NIOWebSocket Base64.swift
[480/510] Compiling NIOWebSocket NIOWebSocketClientUpgrader.swift
[481/510] Compiling NIOWebSocket NIOWebSocketFrameAggregator.swift
[482/510] Compiling NIOWebSocket WebSocketOpcode.swift
[483/511] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
[484/511] Emitting module NIOSSL
[485/511] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[486/511] Compiling NIOSSL TLSConfiguration.swift
[487/511] Compiling NIOSSL UniversalBootstrapSupport.swift
[488/511] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[489/511] Emitting module NIOWebSocket
[490/511] Compiling NIOSSL SecurityFrameworkCertificateVerification.swift
[491/511] Compiling NIOSSL String+unsafeUninitializedCapacity.swift
[492/511] Compiling NIOSSL SubjectAlternativeName.swift
[493/511] Compiling NIOSSL SSLPKCS12Bundle.swift
[494/511] Compiling NIOSSL SSLPrivateKey.swift
[495/511] Compiling NIOSSL SSLPublicKey.swift
[496/511] Compiling NIOSSL LinuxCABundle.swift
[497/511] Compiling NIOSSL NIOSSLClientHandler.swift
[498/511] Compiling NIOSSL NIOSSLHandler.swift
[499/511] Compiling NIOSSL SSLCallbacks.swift
[500/511] Compiling NIOSSL SSLCertificate.swift
[501/511] Compiling NIOSSL SSLConnection.swift
[502/511] Compiling NIOSSL SSLContext.swift
[503/511] Compiling NIOSSL SSLErrors.swift
[504/511] Compiling NIOSSL SSLInit.swift
[511/512] Compiling NIOWebSocket WebSocketFrame.swift
[514/522] Compiling WebSocket ReExport.swift
[515/522] Compiling WebSocket State.swift
[516/523] Compiling WebSocket Handler.swift
[517/523] Compiling WebSocket InitialRequestHandler.swift
[518/523] Compiling WebSocket EventLoopGroup.swift
[519/523] Compiling WebSocket FrameBuffer.swift
[520/523] Emitting module WebSocket
[521/523] Compiling WebSocket Data.swift
[522/523] Compiling WebSocket Error.swift
[523/523] Compiling WebSocket WebSocket.swift
[525/615] Compiling DiscordKitCore GatewayIO.swift
[526/615] Compiling DiscordKitCore ReadState.swift
[527/615] Compiling DiscordKitCore UserSettings.swift
[528/615] Compiling DiscordKitCore LogOut.swift
[529/615] Compiling DiscordKitCore MessageReadAck.swift
[530/615] Compiling DiscordKitCore NewMessage.swift
[531/615] Compiling DiscordKitCore ResolvedInvite.swift
[532/615] Compiling DiscordKitCore APIAchievements.swift
[533/615] Compiling DiscordKitCore APIApplicationCommands.swift
[534/615] Compiling DiscordKitCore APIApplicationRoleConnectionMetadata.swift
[535/615] Compiling DiscordKitCore APIAuditLog.swift
[536/615] Compiling DiscordKitCore APIAutoModeration.swift
[537/615] Compiling DiscordKitCore APIChannel.swift
[538/627] Compiling DiscordKitCore APIUtils.swift
[539/627] Compiling DiscordKitCore DiscordKitConfig.swift
[540/627] Compiling DiscordKitCore DiscordREST.swift
[541/627] Compiling DiscordKitCore Collection+Identifiable.swift
[542/627] Compiling DiscordKitCore Int+decodeFlags.swift
[543/627] Compiling DiscordKitCore Logger+.swift
[544/627] Compiling DiscordKitCore Message+.swift
[545/627] Compiling DiscordKitCore User+.swift
[546/627] Compiling DiscordKitCore Snowflake+decode.swift
[547/627] Compiling DiscordKitCore String+random.swift
[548/627] Compiling DiscordKitCore URL+.swift
[549/627] Compiling DiscordKitCore URLSession+.swift
[550/627] Compiling DiscordKitCore DecompressionEngine.swift
[551/627] Compiling DiscordKitCore APIStageInstance.swift
[552/627] Compiling DiscordKitCore APISticker.swift
[553/627] Compiling DiscordKitCore APIStore.swift
[554/627] Compiling DiscordKitCore APIUser.swift
[555/627] Compiling DiscordKitCore APIVoice.swift
[556/627] Compiling DiscordKitCore APIWebhook.swift
[557/627] Compiling DiscordKitCore DecodeThrowable.swift
[558/627] Compiling DiscordKitCore DiscordRange.swift
[559/627] Compiling DiscordKitCore EventDispatch.swift
[560/627] Compiling DiscordKitCore HashedAsset.swift
[561/627] Compiling DiscordKitCore HybridSnowflake.swift
[562/627] Compiling DiscordKitCore NullEncodable.swift
[563/627] Emitting module DiscordKitCore
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
[564/627] Compiling DiscordKitCore GuildMembersChunk.swift
[565/627] Compiling DiscordKitCore GuildMiscUpdate.swift
[566/627] Compiling DiscordKitCore GuildRoleEvt.swift
[567/627] Compiling DiscordKitCore GuildSchEvtUserEvt.swift
[568/627] Compiling DiscordKitCore MessageACKEvt.swift
[569/627] Compiling DiscordKitCore MessageDelete.swift
[570/627] Compiling DiscordKitCore ReadyEvt.swift
[571/627] Compiling DiscordKitCore ReadySuppEvt.swift
[572/627] Compiling DiscordKitCore ThreadListSync.swift
[573/627] Compiling DiscordKitCore ThreadMembersUpdate.swift
[574/627] Compiling DiscordKitCore TypingStart.swift
[575/627] Compiling DiscordKitCore TypingStartEvt.swift
[576/627] Compiling DiscordKitCore Gateway.swift
[577/627] Compiling DiscordKitCore Interaction.swift
[578/627] Compiling DiscordKitCore Levels.swift
[579/627] Compiling DiscordKitCore Locale.swift
[580/627] Compiling DiscordKitCore Member.swift
[581/627] Compiling DiscordKitCore Mention.swift
[582/627] Compiling DiscordKitCore Message.swift
[583/627] Compiling DiscordKitCore Nonce.swift
[584/627] Compiling DiscordKitCore Permission.swift
[585/627] Compiling DiscordKitCore Presence.swift
[586/627] Compiling DiscordKitCore Reaction.swift
[587/627] Compiling DiscordKitCore Snowflake.swift
[588/627] Compiling DiscordKitCore Stage.swift
[589/627] Compiling DiscordKitCore Sticker.swift
[590/627] Compiling DiscordKitCore GatewayIdentify.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[591/627] Compiling DiscordKitCore Intents.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[592/627] Compiling DiscordKitCore RobustWebSocket.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[593/627] Compiling DiscordKitCore Activity.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[594/627] Compiling DiscordKitCore AppCommand.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[595/627] Compiling DiscordKitCore Application.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[596/627] Compiling DiscordKitCore Attachment.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[597/627] Compiling DiscordKitCore Channel.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[598/627] Compiling DiscordKitCore Connection.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[599/627] Compiling DiscordKitCore Embed.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[600/627] Compiling DiscordKitCore Emoji.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[601/627] Compiling DiscordKitCore Guild.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[602/627] Compiling DiscordKitCore Integration.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use 'String(describing:)' to silence this warning
| | `- note: provide a default value to avoid this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[603/627] Compiling DiscordKitCore Team.swift
[604/627] Compiling DiscordKitCore User+Flags.swift
[605/627] Compiling DiscordKitCore User+PremiumType.swift
[606/627] Compiling DiscordKitCore User.swift
[607/627] Compiling DiscordKitCore Voice.swift
[608/627] Compiling DiscordKitCore ApplicationObj.swift
[609/627] Compiling DiscordKitCore DataStructs.swift
[610/627] Compiling DiscordKitCore ChUnreadUpdate.swift
[611/627] Compiling DiscordKitCore ChannelPinsUpdate.swift
[612/627] Compiling DiscordKitCore GatewayEvent.swift
[613/627] Compiling DiscordKitCore GatewaySettingsProtoUpdate.swift
[614/627] Compiling DiscordKitCore GuildBan.swift
[615/627] Compiling DiscordKitCore GuildMemberEvt.swift
[616/627] Compiling DiscordKitCore APICurrentUser.swift
[617/627] Compiling DiscordKitCore APIEmoji.swift
[618/627] Compiling DiscordKitCore APIGateway.swift
[619/627] Compiling DiscordKitCore APIGuild.swift
[620/627] Compiling DiscordKitCore APIGuildScheduledEvent.swift
[621/627] Compiling DiscordKitCore APIGuildTemplate.swift
[622/627] Compiling DiscordKitCore APIInvite.swift
[623/627] Compiling DiscordKitCore APILobbies.swift
[624/627] Compiling DiscordKitCore APIMultipartFormBody.swift
[625/627] Compiling DiscordKitCore APIOAuth2.swift
[626/627] Compiling DiscordKitCore APIReceivingandResponding.swift
[627/627] Compiling DiscordKitCore APIRequest.swift
[629/671] Emitting module DiscordKitBot
[630/673] Compiling DiscordKit UserSettingsProtoUpdate.swift
[631/673] Compiling DiscordKit APIUser+.swift
[632/673] Compiling DiscordKit DiscordProtos.pb.swift
[633/673] Compiling DiscordKit TextAndImages.pb.swift
[634/673] Compiling DiscordKit UserContent.pb.swift
[635/673] Compiling DiscordKitBot ComponentBuilder.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[636/673] Emitting module DiscordKit
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
42 | /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
43 | /// > stale UI issues (i.e. stale UI)
44 | @Published public var cache: CachedState = CachedState()
| `- error: unknown attribute 'Published'
45 |
46 | /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
47 | ///
48 | /// Contains a dict of user presences, keyed by their respective user IDs
49 | @Published public var presences: [Snowflake: Presence] = [:]
| `- error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
52 | @Published public var guildFolders: [GuildFolderItem] = []
| `- error: unknown attribute 'Published'
53 |
54 | /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
55 | ///
56 | /// Includes both single DMs and group DMs
57 | @Published public var privateChannels: [Channel] = []
| `- error: unknown attribute 'Published'
58 |
59 | /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
58 |
59 | /// Read state
60 | @Published public var readState: [Snowflake: ReadState.Entry] = [:]
| `- error: unknown attribute 'Published'
61 |
62 | private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
67 | ///
68 | /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
69 | @Published public var connected = false
| `- error: unknown attribute 'Published'
70 | /// If the network is reachable (has network connectivity)
71 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
71 | ///
72 | /// `@Published` proxy of ``RobustWebSocket/reachable``
73 | @Published public var reachable = false
| `- error: unknown attribute 'Published'
74 |
75 | // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
18 | ///
19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
20 | public class DiscordGateway: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
21 | // Events
22 | /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
16 | ///
17 | /// > The guild's ID is its key
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
| `- error: unknown attribute 'Published'
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
| `- error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
23 | @Published public private(set) var dms: [Channel] = []
| `- error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
26 | @Published public private(set) var user: CurrentUser?
| `- error: unknown attribute 'Published'
27 |
28 | /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
28 | /// Cached users, initially populated from `READY` event and might
29 | /// grow over time
30 | @Published public private(set) var users: [Snowflake: User] = [:]
| `- error: unknown attribute 'Published'
31 |
32 | /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
12 | ///
13 | /// Used in ``DiscordGateway/cache``.
14 | public class CachedState: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
15 | /// Dictionary of guilds the user is in
16 | ///
[637/675] Compiling DiscordKit Status.pb.swift
[638/675] Compiling DiscordKitBot APICommand.swift
[639/675] Compiling DiscordKit AllGuildSettings.pb.swift
[640/675] Compiling DiscordKit Appearance.pb.swift
[641/675] Compiling DiscordKit Audio.pb.swift
[642/675] Compiling DiscordKit Debug.pb.swift
[643/675] Compiling DiscordKit GameLibrary.pb.swift
[644/675] Compiling DiscordKit Inbox.pb.swift
[645/675] Compiling DiscordKit FavoriteChannel.pb.swift
[646/675] Compiling DiscordKit FavoriteGIFs.pb.swift
[647/675] Compiling DiscordKit GuildFolders.pb.swift
[651/675] Compiling DiscordKit Localization.pb.swift
[652/675] Compiling DiscordKit Notification.pb.swift
[653/675] Compiling DiscordKit Privacy.pb.swift
[654/675] Compiling DiscordKit Presence+.swift
[655/675] Compiling DiscordKit DiscordGateway.swift
[656/675] Compiling DiscordKit GatewayCachedState.swift
[663/676] Compiling DiscordKit VoiceAndVideo.pb.swift
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
42 | /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
43 | /// > stale UI issues (i.e. stale UI)
44 | @Published public var cache: CachedState = CachedState()
| `- error: unknown attribute 'Published'
45 |
46 | /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
47 | ///
48 | /// Contains a dict of user presences, keyed by their respective user IDs
49 | @Published public var presences: [Snowflake: Presence] = [:]
| `- error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
52 | @Published public var guildFolders: [GuildFolderItem] = []
| `- error: unknown attribute 'Published'
53 |
54 | /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
55 | ///
56 | /// Includes both single DMs and group DMs
57 | @Published public var privateChannels: [Channel] = []
| `- error: unknown attribute 'Published'
58 |
59 | /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
58 |
59 | /// Read state
60 | @Published public var readState: [Snowflake: ReadState.Entry] = [:]
| `- error: unknown attribute 'Published'
61 |
62 | private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
67 | ///
68 | /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
69 | @Published public var connected = false
| `- error: unknown attribute 'Published'
70 | /// If the network is reachable (has network connectivity)
71 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
71 | ///
72 | /// `@Published` proxy of ``RobustWebSocket/reachable``
73 | @Published public var reachable = false
| `- error: unknown attribute 'Published'
74 |
75 | // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
18 | ///
19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
20 | public class DiscordGateway: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
21 | // Events
22 | /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:112:15: error: value of type 'CachedState' has no member 'objectWillChange'
110 | // Clear cache
111 | cache = CachedState()
112 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
113 | socket?.close(code: .normalClosure)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
194 |
195 | private func handleGuildUpdate(_ updatedGuild: Guild) {
196 | guard let existingGuild = cache.guilds[updatedGuild.id] else {
| `- warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
197 | return
198 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:200:13: warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
198 | }
199 |
200 | var modifiedGuild = updatedGuild
| `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
201 |
202 | // ``GatewayEvent.guildUpdate`` events are missing data that is only present in the initial ``GatewayEvent.ready`` event, so we need to copy those properties over manually.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:221:28: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
219 | let settings: Discord_UserSettings
220 | do {
221 | settings = try Discord_UserSettings(serializedData: Data(base64Encoded: proto)!)
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
222 | } catch {
223 | log.error("Proto decode error! \(String(describing: error))")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:303:15: error: value of type 'CachedState' has no member 'objectWillChange'
301 | }
302 |
303 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
304 | onEvent.notify(event: data)
305 | log.trace("[EVENT] Dispatched event")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
16 | ///
17 | /// > The guild's ID is its key
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
| `- error: unknown attribute 'Published'
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
| `- error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
23 | @Published public private(set) var dms: [Channel] = []
| `- error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
26 | @Published public private(set) var user: CurrentUser?
| `- error: unknown attribute 'Published'
27 |
28 | /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
28 | /// Cached users, initially populated from `READY` event and might
29 | /// grow over time
30 | @Published public private(set) var users: [Snowflake: User] = [:]
| `- error: unknown attribute 'Published'
31 |
32 | /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
12 | ///
13 | /// Used in ``DiscordGateway/cache``.
14 | public class CachedState: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
15 | /// Dictionary of guilds the user is in
16 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:35:22: error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
33 | /// - Parameter event: An incoming Gateway "ready" event.
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
| `- error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
36 | dms = event.private_channels
37 | user = event.user
:
47 | /// Updates or appends the provided guild.
48 | /// - Parameter guild: The guild you want to update or append to the cache.
49 | func appendOrReplace(_ guild: PreloadedGuild) {
| `- note: found candidate with type '(PreloadedGuild) -> ()'
50 | guilds.updateValue(guild, forKey: guild.id)
51 | }
:
100 | /// Appends or replaces the given message within the appropriate channel.
101 | /// - Parameter message: The message to append.
102 | func appendOrReplace(_ message: Message) {
| `- note: found candidate with type '(Message) -> ()'
103 | if let idx = dms.firstIndex(where: { $0.id == message.channel_id }) {
104 | dms[idx].last_message_id = message.id
:
110 | /// Appends or replaces the provided user in the cache.
111 | /// - Parameter user: The user to cache.
112 | func appendOrReplace(_ user: User) {
| `- note: found candidate with type '(User) -> ()'
113 | users.updateValue(user, forKey: user.id)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:36:13: error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
36 | dms = event.private_channels
| |- error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
| `- note: arguments to generic parameter 'Element' ('DecodeThrowable<Channel>' and 'Channel') are expected to be equal
37 | user = event.user
38 | event.users.forEach(appendOrReplace(_:))
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:40:39: error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
38 | event.users.forEach(appendOrReplace(_:))
39 | event.merged_members.enumerated().forEach { (idx, guildMembers) in
40 | members[event.guilds[idx].id] = guildMembers.first(where: { $0.user_id == event.user.id })
| `- error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
41 | }
42 | print(members)
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
62 | /// - Parameter channel: The channel to append.
63 | func append(_ channel: Channel) {
64 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
65 | return
66 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
72 | /// - Parameter channel: The channel to remove.
73 | func remove(_ channel: Channel) {
74 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
75 | return
76 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
42 | /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
43 | /// > stale UI issues (i.e. stale UI)
44 | @Published public var cache: CachedState = CachedState()
| `- error: unknown attribute 'Published'
45 |
46 | /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
47 | ///
48 | /// Contains a dict of user presences, keyed by their respective user IDs
49 | @Published public var presences: [Snowflake: Presence] = [:]
| `- error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
52 | @Published public var guildFolders: [GuildFolderItem] = []
| `- error: unknown attribute 'Published'
53 |
54 | /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
55 | ///
56 | /// Includes both single DMs and group DMs
57 | @Published public var privateChannels: [Channel] = []
| `- error: unknown attribute 'Published'
58 |
59 | /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
58 |
59 | /// Read state
60 | @Published public var readState: [Snowflake: ReadState.Entry] = [:]
| `- error: unknown attribute 'Published'
61 |
62 | private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
67 | ///
68 | /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
69 | @Published public var connected = false
| `- error: unknown attribute 'Published'
70 | /// If the network is reachable (has network connectivity)
71 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
71 | ///
72 | /// `@Published` proxy of ``RobustWebSocket/reachable``
73 | @Published public var reachable = false
| `- error: unknown attribute 'Published'
74 |
75 | // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
18 | ///
19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
20 | public class DiscordGateway: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
21 | // Events
22 | /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:112:15: error: value of type 'CachedState' has no member 'objectWillChange'
110 | // Clear cache
111 | cache = CachedState()
112 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
113 | socket?.close(code: .normalClosure)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
194 |
195 | private func handleGuildUpdate(_ updatedGuild: Guild) {
196 | guard let existingGuild = cache.guilds[updatedGuild.id] else {
| `- warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
197 | return
198 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:200:13: warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
198 | }
199 |
200 | var modifiedGuild = updatedGuild
| `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
201 |
202 | // ``GatewayEvent.guildUpdate`` events are missing data that is only present in the initial ``GatewayEvent.ready`` event, so we need to copy those properties over manually.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:221:28: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
219 | let settings: Discord_UserSettings
220 | do {
221 | settings = try Discord_UserSettings(serializedData: Data(base64Encoded: proto)!)
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
222 | } catch {
223 | log.error("Proto decode error! \(String(describing: error))")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:303:15: error: value of type 'CachedState' has no member 'objectWillChange'
301 | }
302 |
303 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
304 | onEvent.notify(event: data)
305 | log.trace("[EVENT] Dispatched event")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
16 | ///
17 | /// > The guild's ID is its key
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
| `- error: unknown attribute 'Published'
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
| `- error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
23 | @Published public private(set) var dms: [Channel] = []
| `- error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
26 | @Published public private(set) var user: CurrentUser?
| `- error: unknown attribute 'Published'
27 |
28 | /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
28 | /// Cached users, initially populated from `READY` event and might
29 | /// grow over time
30 | @Published public private(set) var users: [Snowflake: User] = [:]
| `- error: unknown attribute 'Published'
31 |
32 | /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
12 | ///
13 | /// Used in ``DiscordGateway/cache``.
14 | public class CachedState: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
15 | /// Dictionary of guilds the user is in
16 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:35:22: error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
33 | /// - Parameter event: An incoming Gateway "ready" event.
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
| `- error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
36 | dms = event.private_channels
37 | user = event.user
:
47 | /// Updates or appends the provided guild.
48 | /// - Parameter guild: The guild you want to update or append to the cache.
49 | func appendOrReplace(_ guild: PreloadedGuild) {
| `- note: found candidate with type '(PreloadedGuild) -> ()'
50 | guilds.updateValue(guild, forKey: guild.id)
51 | }
:
100 | /// Appends or replaces the given message within the appropriate channel.
101 | /// - Parameter message: The message to append.
102 | func appendOrReplace(_ message: Message) {
| `- note: found candidate with type '(Message) -> ()'
103 | if let idx = dms.firstIndex(where: { $0.id == message.channel_id }) {
104 | dms[idx].last_message_id = message.id
:
110 | /// Appends or replaces the provided user in the cache.
111 | /// - Parameter user: The user to cache.
112 | func appendOrReplace(_ user: User) {
| `- note: found candidate with type '(User) -> ()'
113 | users.updateValue(user, forKey: user.id)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:36:13: error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
36 | dms = event.private_channels
| |- error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
| `- note: arguments to generic parameter 'Element' ('DecodeThrowable<Channel>' and 'Channel') are expected to be equal
37 | user = event.user
38 | event.users.forEach(appendOrReplace(_:))
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:40:39: error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
38 | event.users.forEach(appendOrReplace(_:))
39 | event.merged_members.enumerated().forEach { (idx, guildMembers) in
40 | members[event.guilds[idx].id] = guildMembers.first(where: { $0.user_id == event.user.id })
| `- error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
41 | }
42 | print(members)
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
62 | /// - Parameter channel: The channel to append.
63 | func append(_ channel: Channel) {
64 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
65 | return
66 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
72 | /// - Parameter channel: The channel to remove.
73 | func remove(_ channel: Channel) {
74 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
75 | return
76 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
42 | /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
43 | /// > stale UI issues (i.e. stale UI)
44 | @Published public var cache: CachedState = CachedState()
| `- error: unknown attribute 'Published'
45 |
46 | /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
47 | ///
48 | /// Contains a dict of user presences, keyed by their respective user IDs
49 | @Published public var presences: [Snowflake: Presence] = [:]
| `- error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
52 | @Published public var guildFolders: [GuildFolderItem] = []
| `- error: unknown attribute 'Published'
53 |
54 | /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
55 | ///
56 | /// Includes both single DMs and group DMs
57 | @Published public var privateChannels: [Channel] = []
| `- error: unknown attribute 'Published'
58 |
59 | /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
58 |
59 | /// Read state
60 | @Published public var readState: [Snowflake: ReadState.Entry] = [:]
| `- error: unknown attribute 'Published'
61 |
62 | private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
67 | ///
68 | /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
69 | @Published public var connected = false
| `- error: unknown attribute 'Published'
70 | /// If the network is reachable (has network connectivity)
71 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
71 | ///
72 | /// `@Published` proxy of ``RobustWebSocket/reachable``
73 | @Published public var reachable = false
| `- error: unknown attribute 'Published'
74 |
75 | // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
18 | ///
19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
20 | public class DiscordGateway: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
21 | // Events
22 | /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:112:15: error: value of type 'CachedState' has no member 'objectWillChange'
110 | // Clear cache
111 | cache = CachedState()
112 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
113 | socket?.close(code: .normalClosure)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
194 |
195 | private func handleGuildUpdate(_ updatedGuild: Guild) {
196 | guard let existingGuild = cache.guilds[updatedGuild.id] else {
| `- warning: value 'existingGuild' was defined but never used; consider replacing with boolean test
197 | return
198 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:200:13: warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
198 | }
199 |
200 | var modifiedGuild = updatedGuild
| `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it
201 |
202 | // ``GatewayEvent.guildUpdate`` events are missing data that is only present in the initial ``GatewayEvent.ready`` event, so we need to copy those properties over manually.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:221:28: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
219 | let settings: Discord_UserSettings
220 | do {
221 | settings = try Discord_UserSettings(serializedData: Data(base64Encoded: proto)!)
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
222 | } catch {
223 | log.error("Proto decode error! \(String(describing: error))")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:303:15: error: value of type 'CachedState' has no member 'objectWillChange'
301 | }
302 |
303 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
304 | onEvent.notify(event: data)
305 | log.trace("[EVENT] Dispatched event")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
16 | ///
17 | /// > The guild's ID is its key
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
| `- error: unknown attribute 'Published'
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
| `- error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
23 | @Published public private(set) var dms: [Channel] = []
| `- error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
26 | @Published public private(set) var user: CurrentUser?
| `- error: unknown attribute 'Published'
27 |
28 | /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
28 | /// Cached users, initially populated from `READY` event and might
29 | /// grow over time
30 | @Published public private(set) var users: [Snowflake: User] = [:]
| `- error: unknown attribute 'Published'
31 |
32 | /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
12 | ///
13 | /// Used in ``DiscordGateway/cache``.
14 | public class CachedState: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
15 | /// Dictionary of guilds the user is in
16 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:35:22: error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
33 | /// - Parameter event: An incoming Gateway "ready" event.
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
| `- error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
36 | dms = event.private_channels
37 | user = event.user
:
47 | /// Updates or appends the provided guild.
48 | /// - Parameter guild: The guild you want to update or append to the cache.
49 | func appendOrReplace(_ guild: PreloadedGuild) {
| `- note: found candidate with type '(PreloadedGuild) -> ()'
50 | guilds.updateValue(guild, forKey: guild.id)
51 | }
:
100 | /// Appends or replaces the given message within the appropriate channel.
101 | /// - Parameter message: The message to append.
102 | func appendOrReplace(_ message: Message) {
| `- note: found candidate with type '(Message) -> ()'
103 | if let idx = dms.firstIndex(where: { $0.id == message.channel_id }) {
104 | dms[idx].last_message_id = message.id
:
110 | /// Appends or replaces the provided user in the cache.
111 | /// - Parameter user: The user to cache.
112 | func appendOrReplace(_ user: User) {
| `- note: found candidate with type '(User) -> ()'
113 | users.updateValue(user, forKey: user.id)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:36:13: error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
36 | dms = event.private_channels
| |- error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
| `- note: arguments to generic parameter 'Element' ('DecodeThrowable<Channel>' and 'Channel') are expected to be equal
37 | user = event.user
38 | event.users.forEach(appendOrReplace(_:))
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:40:39: error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
38 | event.users.forEach(appendOrReplace(_:))
39 | event.merged_members.enumerated().forEach { (idx, guildMembers) in
40 | members[event.guilds[idx].id] = guildMembers.first(where: { $0.user_id == event.user.id })
| `- error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
41 | }
42 | print(members)
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
62 | /// - Parameter channel: The channel to append.
63 | func append(_ channel: Channel) {
64 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
65 | return
66 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test
72 | /// - Parameter channel: The channel to remove.
73 | func remove(_ channel: Channel) {
74 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test
75 | return
76 | }
BUILD FAILURE 6.1 linux