Build Information
Failed to build DiscordKit, reference main (2da56f), with Swift 6.3 for macOS (SPM) on 13 Apr 2026 16:02:04 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftcordApp/DiscordKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftcordApp/DiscordKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2da56fe patch(snowflake): update discord epoch to be static property
Cloned https://github.com/SwiftcordApp/DiscordKit.git
Revision (git rev-parse @):
2da56feba250dac2638b58ee5c6b362fa46002d1
SUCCESS checkout https://github.com/SwiftcordApp/DiscordKit.git at main
Fetching https://github.com/tsolomko/SWCompression.git
Fetching https://github.com/ashleymills/Reachability.swift
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/tesseract-one/WebSocket.swift.git
Fetching https://github.com/tsolomko/BitByteData
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/1922] Fetching reachability.swift
[21/2209] Fetching reachability.swift, websocket.swift
[96/4480] Fetching reachability.swift, websocket.swift, swift-docc-plugin
[339/22197] Fetching reachability.swift, websocket.swift, swift-docc-plugin, swcompression
[340/25426] Fetching reachability.swift, websocket.swift, swift-docc-plugin, swcompression, bitbytedata
[1677/31978] Fetching reachability.swift, websocket.swift, swift-docc-plugin, swcompression, bitbytedata, swift-log
[3192/47396] Fetching reachability.swift, websocket.swift, swift-docc-plugin, swcompression, bitbytedata, swift-log, swift-nio-ssl
Fetched https://github.com/ashleymills/Reachability.swift from cache (0.92s)
[2538/45474] Fetching websocket.swift, swift-docc-plugin, swcompression, bitbytedata, swift-log, swift-nio-ssl
Fetching https://github.com/OpenCombine/OpenCombine.git
Fetched https://github.com/tesseract-one/WebSocket.swift.git from cache (1.26s)
Fetching https://github.com/apple/swift-protobuf.git
Fetched https://github.com/apple/swift-log.git from cache (1.27s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.27s)
Fetched https://github.com/tsolomko/BitByteData from cache (1.27s)
Fetching https://github.com/apple/swift-nio.git
[11218/33135] Fetching swcompression, swift-nio-ssl
[16983/41419] Fetching swcompression, swift-nio-ssl, opencombine
Fetched https://github.com/tsolomko/SWCompression.git from cache (2.04s)
[19231/23702] Fetching swift-nio-ssl, opencombine
Fetched https://github.com/OpenCombine/OpenCombine.git from cache (1.20s)
[11256/15418] Fetching swift-nio-ssl
[14494/98557] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.90s)
[4989/83139] Fetching swift-nio
[32426/129017] Fetching swift-nio, swift-protobuf
Fetched https://github.com/apple/swift-nio.git from cache (6.51s)
Fetched https://github.com/apple/swift-protobuf.git from cache (7.29s)
Computing version for https://github.com/tesseract-one/WebSocket.swift.git
Computed https://github.com/tesseract-one/WebSocket.swift.git at 0.2.0 (9.25s)
Computing version for https://github.com/tsolomko/SWCompression.git
Computed https://github.com/tsolomko/SWCompression.git at 4.8.5 (0.65s)
Computing version for https://github.com/OpenCombine/OpenCombine.git
Computed https://github.com/OpenCombine/OpenCombine.git at 0.14.0 (0.70s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.4 (0.67s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.20.2 (0.68s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.0.0 (0.67s)
Computing version for https://github.com/ashleymills/Reachability.swift
Computed https://github.com/ashleymills/Reachability.swift at 5.1.0 (2.33s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.19.0 (0.71s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.40.0 (0.69s)
Computing version for https://github.com/tsolomko/BitByteData
Computed https://github.com/tsolomko/BitByteData at 2.0.2 (0.68s)
Creating working copy for https://github.com/tesseract-one/WebSocket.swift.git
Working copy of https://github.com/tesseract-one/WebSocket.swift.git resolved at 0.2.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.40.0
Creating working copy for https://github.com/tsolomko/BitByteData
Working copy of https://github.com/tsolomko/BitByteData resolved at 2.0.2
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.19.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.20.2
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.4
Creating working copy for https://github.com/OpenCombine/OpenCombine.git
Working copy of https://github.com/OpenCombine/OpenCombine.git resolved at 0.14.0
Creating working copy for https://github.com/ashleymills/Reachability.swift
Working copy of https://github.com/ashleymills/Reachability.swift resolved at 5.1.0
Creating working copy for https://github.com/tsolomko/SWCompression.git
Working copy of https://github.com/tsolomko/SWCompression.git resolved at 4.8.5
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "discordkit",
"name": "DiscordKit",
"url": "https://github.com/SwiftcordApp/DiscordKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DiscordKit",
"traits": [
"default"
],
"dependencies": [
{
"identity": "reachability.swift",
"name": "Reachability",
"url": "https://github.com/ashleymills/Reachability.swift",
"version": "5.2.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Reachability.swift",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "swift-protobuf",
"name": "SwiftProtobuf",
"url": "https://github.com/apple/swift-protobuf.git",
"version": "1.36.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-protobuf",
"traits": [
"FieldMaskUtilities",
"BinaryDelimitedStreams"
],
"dependencies": [
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.11.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"traits": [
],
"dependencies": [
]
},
{
"identity": "opencombine",
"name": "OpenCombine",
"url": "https://github.com/OpenCombine/OpenCombine.git",
"version": "0.14.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OpenCombine",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "swcompression",
"name": "SWCompression",
"url": "https://github.com/tsolomko/SWCompression.git",
"version": "4.8.6",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SWCompression",
"traits": [
"default"
],
"dependencies": [
{
"identity": "bitbytedata",
"name": "BitByteData",
"url": "https://github.com/tsolomko/BitByteData",
"version": "2.0.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BitByteData",
"traits": [
"default"
],
"dependencies": [
]
}
]
},
{
"identity": "websocket.swift",
"name": "WebSocket",
"url": "https://github.com/tesseract-one/WebSocket.swift.git",
"version": "0.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WebSocket.swift",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio.git",
"version": "2.40.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"traits": [
"default"
],
"dependencies": [
]
},
{
"identity": "swift-nio-ssl",
"name": "swift-nio-ssl",
"url": "https://github.com/apple/swift-nio-ssl.git",
"version": "2.19.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio-ssl",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio.git",
"version": "2.40.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
}
]
}
]
}
Fetching https://github.com/SwiftcordApp/DiscordKit.git
[1/5612] Fetching discordkit
Fetched https://github.com/SwiftcordApp/DiscordKit.git from cache (1.46s)
Fetching https://github.com/ashleymills/Reachability.swift from cache
Fetching https://github.com/apple/swift-protobuf.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/tesseract-one/WebSocket.swift.git from cache
Fetching https://github.com/tsolomko/SWCompression.git from cache
Fetching https://github.com/OpenCombine/OpenCombine.git from cache
Fetched https://github.com/apple/swift-protobuf.git from cache (0.79s)
Fetched https://github.com/OpenCombine/OpenCombine.git from cache (0.79s)
Fetched https://github.com/tsolomko/SWCompression.git from cache (0.79s)
Fetched https://github.com/ashleymills/Reachability.swift from cache (0.79s)
Fetched https://github.com/tesseract-one/WebSocket.swift.git from cache (0.79s)
Fetched https://github.com/apple/swift-log.git from cache (0.79s)
Computing version for https://github.com/tesseract-one/WebSocket.swift.git
Computed https://github.com/tesseract-one/WebSocket.swift.git at 0.2.0 (0.92s)
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/apple/swift-nio-ssl.git from cache
Fetched https://github.com/apple/swift-nio.git from cache (0.82s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (0.82s)
Computing version for https://github.com/OpenCombine/OpenCombine.git
Computed https://github.com/OpenCombine/OpenCombine.git at 0.14.0 (0.91s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.19.0 (0.03s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.40.0 (0.04s)
Computing version for https://github.com/ashleymills/Reachability.swift
Computed https://github.com/ashleymills/Reachability.swift at 5.2.4 (0.64s)
Computing version for https://github.com/tsolomko/SWCompression.git
Computed https://github.com/tsolomko/SWCompression.git at 4.8.6 (0.67s)
Fetching https://github.com/tsolomko/BitByteData from cache
Fetched https://github.com/tsolomko/BitByteData from cache (0.49s)
Computing version for https://github.com/tsolomko/BitByteData
Computed https://github.com/tsolomko/BitByteData at 2.0.4 (1.16s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.11.0 (0.47s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.36.1 (0.64s)
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.19.0
Creating working copy for https://github.com/tesseract-one/WebSocket.swift.git
Working copy of https://github.com/tesseract-one/WebSocket.swift.git resolved at 0.2.0
Creating working copy for https://github.com/tsolomko/BitByteData
Working copy of https://github.com/tsolomko/BitByteData resolved at 2.0.4
Creating working copy for https://github.com/tsolomko/SWCompression.git
Working copy of https://github.com/tsolomko/SWCompression.git resolved at 4.8.6
Creating working copy for https://github.com/ashleymills/Reachability.swift
Working copy of https://github.com/ashleymills/Reachability.swift resolved at 5.2.4
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.40.0
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.36.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.11.0
Creating working copy for https://github.com/OpenCombine/OpenCombine.git
Working copy of https://github.com/OpenCombine/OpenCombine.git resolved at 0.14.0
Creating working copy for https://github.com/SwiftcordApp/DiscordKit.git
Working copy of https://github.com/SwiftcordApp/DiscordKit.git resolved at main (2da56fe)
warning: '.resolve-product-dependencies': dependency 'discordkit' is not used by any target
Found 6 product dependencies
- Reachability
- SwiftProtobuf
- swift-log
- OpenCombine
- SWCompression
- WebSocket
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/SwiftcordApp/DiscordKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
[1/1] Compiling plugin SwiftProtobufPlugin
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
Building for debugging...
[3/10] Write sources
[9/10] Write swift-version--6988338F2F200930.txt
[11/93] Compiling Logging Locks.swift
[12/93] Compiling Logging Logging.swift
[13/93] Emitting module Logging
[14/93] Compiling Logging LogHandler.swift
[15/93] Emitting module SwiftProtobuf
[16/101] Compiling SwiftProtobuf Message+BinaryAdditions.swift
[17/101] Compiling SwiftProtobuf Message+JSONAdditions.swift
[18/101] Compiling SwiftProtobuf Message+JSONArrayAdditions.swift
[19/101] Compiling SwiftProtobuf Message+TextFormatAdditions.swift
[20/101] Compiling SwiftProtobuf Message.swift
[21/101] Compiling SwiftProtobuf MessageExtension.swift
[22/101] Compiling SwiftProtobuf NameMap.swift
[23/101] Compiling SwiftProtobuf ProtoNameProviding.swift
[24/101] Compiling SwiftProtobuf ProtobufAPIVersionCheck.swift
[25/101] Compiling SwiftProtobuf ProtobufMap.swift
[26/101] Compiling SwiftProtobuf SelectiveVisitor.swift
[27/101] Compiling SwiftProtobuf SimpleExtensionMap.swift
[28/101] Compiling SwiftProtobuf StringUtils.swift
[29/101] Compiling SwiftProtobuf TextFormatDecoder.swift
[30/101] Compiling SwiftProtobuf TextFormatDecodingError.swift
[31/101] Compiling SwiftProtobuf TextFormatDecodingOptions.swift
[32/101] Compiling SwiftProtobuf ExtensionMap.swift
[33/101] Compiling SwiftProtobuf FieldTag.swift
[34/101] Compiling SwiftProtobuf FieldTypes.swift
[35/101] Compiling SwiftProtobuf Google_Protobuf_Any+Extensions.swift
[36/101] Compiling SwiftProtobuf Google_Protobuf_Any+Registry.swift
[37/101] Compiling SwiftProtobuf Google_Protobuf_Duration+Extensions.swift
[38/101] Compiling SwiftProtobuf Google_Protobuf_FieldMask+Extensions.swift
[39/101] Compiling SwiftProtobuf Google_Protobuf_ListValue+Extensions.swift
[40/101] Compiling SwiftProtobuf Google_Protobuf_NullValue+Extensions.swift
[41/101] Compiling Reachability Reachability.swift
[42/101] Emitting module Reachability
[43/101] Compiling SwiftProtobuf Google_Protobuf_Struct+Extensions.swift
[44/101] Compiling SwiftProtobuf Google_Protobuf_Timestamp+Extensions.swift
[45/101] Compiling SwiftProtobuf Google_Protobuf_Value+Extensions.swift
[46/101] Compiling SwiftProtobuf Google_Protobuf_Wrappers+Extensions.swift
[47/101] Compiling SwiftProtobuf HashVisitor.swift
[48/101] Compiling SwiftProtobuf Internal.swift
[49/101] Compiling SwiftProtobuf JSONDecoder.swift
[50/101] Compiling SwiftProtobuf JSONDecodingError.swift
[51/101] Compiling SwiftProtobuf JSONDecodingOptions.swift
[52/101] Compiling SwiftProtobuf JSONEncoder.swift
[53/101] Compiling SwiftProtobuf JSONEncodingError.swift
[54/101] Compiling SwiftProtobuf JSONEncodingOptions.swift
[55/101] Compiling SwiftProtobuf JSONEncodingVisitor.swift
[56/101] Compiling SwiftProtobuf JSONMapEncodingVisitor.swift
[57/101] Compiling SwiftProtobuf JSONScanner.swift
[58/101] Compiling SwiftProtobuf MathUtils.swift
[59/101] Compiling SwiftProtobuf Message+AnyAdditions.swift
[60/101] Compiling SwiftProtobuf TextFormatEncoder.swift
[61/101] Compiling SwiftProtobuf TextFormatEncodingOptions.swift
[62/101] Compiling SwiftProtobuf TextFormatEncodingVisitor.swift
[63/101] Compiling SwiftProtobuf TextFormatScanner.swift
[64/101] Compiling SwiftProtobuf TimeUtils.swift
[65/101] Compiling SwiftProtobuf UnknownStorage.swift
[66/101] Compiling SwiftProtobuf UnsafeBufferPointer+Shims.swift
[67/101] Compiling SwiftProtobuf UnsafeRawPointer+Shims.swift
[68/101] Compiling SwiftProtobuf duration.pb.swift
[69/101] Compiling SwiftProtobuf empty.pb.swift
[70/101] Compiling SwiftProtobuf field_mask.pb.swift
[71/101] Compiling SwiftProtobuf source_context.pb.swift
[72/101] Compiling SwiftProtobuf struct.pb.swift
[73/101] Compiling SwiftProtobuf timestamp.pb.swift
[74/101] Compiling SwiftProtobuf type.pb.swift
[75/101] Compiling SwiftProtobuf wrappers.pb.swift
[76/101] Compiling SwiftProtobuf BinaryEncodingVisitor.swift
[77/101] Compiling SwiftProtobuf CustomJSONCodable.swift
[78/101] Compiling SwiftProtobuf Data+Extensions.swift
[79/101] Compiling SwiftProtobuf Decoder.swift
[80/101] Compiling SwiftProtobuf DoubleParser.swift
[81/101] Compiling SwiftProtobuf Enum.swift
[82/101] Compiling SwiftProtobuf ExtensibleMessage.swift
[83/101] Compiling SwiftProtobuf ExtensionFieldValueSet.swift
[84/101] Compiling SwiftProtobuf ExtensionFields.swift
[85/101] Compiling SwiftProtobuf AnyMessageStorage.swift
[86/101] Compiling SwiftProtobuf AnyUnpackError.swift
[87/101] Compiling SwiftProtobuf BinaryDecoder.swift
[88/101] Compiling SwiftProtobuf BinaryDecodingError.swift
[89/101] Compiling SwiftProtobuf BinaryDecodingOptions.swift
[90/101] Compiling SwiftProtobuf BinaryDelimited.swift
[91/101] Compiling SwiftProtobuf BinaryEncoder.swift
[92/101] Compiling SwiftProtobuf BinaryEncodingError.swift
[93/101] Compiling SwiftProtobuf BinaryEncodingSizeVisitor.swift
[94/101] Compiling SwiftProtobuf Varint.swift
[95/101] Compiling SwiftProtobuf Version.swift
[96/101] Compiling SwiftProtobuf Visitor.swift
[97/101] Compiling SwiftProtobuf WireFormat.swift
[98/101] Compiling SwiftProtobuf ZigZag.swift
[99/101] Compiling SwiftProtobuf any.pb.swift
[100/101] Compiling SwiftProtobuf api.pb.swift
[101/101] Compiling SwiftProtobuf descriptor.pb.swift
[102/194] Compiling DiscordKitCore APIGuildScheduledEvent.swift
[103/194] Compiling DiscordKitCore APIGuildTemplate.swift
[104/194] Compiling DiscordKitCore APIInvite.swift
[105/194] Compiling DiscordKitCore APILobbies.swift
[106/194] Compiling DiscordKitCore APIMultipartFormBody.swift
[107/194] Compiling DiscordKitCore APIOAuth2.swift
[108/194] Compiling DiscordKitCore APIReceivingandResponding.swift
[109/194] Compiling DiscordKitCore APIRequest.swift
[110/194] Compiling DiscordKitCore APIStageInstance.swift
[111/194] Compiling DiscordKitCore APISticker.swift
[112/204] Compiling DiscordKitCore APIUtils.swift
[113/204] Compiling DiscordKitCore DiscordKitConfig.swift
[114/204] Compiling DiscordKitCore DiscordREST.swift
[115/204] Compiling DiscordKitCore Collection+Identifiable.swift
[116/204] Compiling DiscordKitCore Int+decodeFlags.swift
[117/204] Compiling DiscordKitCore Logger+.swift
[118/204] Compiling DiscordKitCore Message+.swift
[119/204] Compiling DiscordKitCore User+.swift
[120/204] Compiling DiscordKitCore Snowflake+decode.swift
[121/204] Compiling DiscordKitCore String+random.swift
[122/204] Compiling DiscordKitCore URL+.swift
[123/204] Compiling DiscordKitCore APIAchievements.swift
[124/204] Compiling DiscordKitCore APIApplicationCommands.swift
[125/204] Compiling DiscordKitCore APIApplicationRoleConnectionMetadata.swift
[126/204] Compiling DiscordKitCore APIAuditLog.swift
[127/204] Compiling DiscordKitCore APIAutoModeration.swift
[128/204] Compiling DiscordKitCore APIChannel.swift
[129/204] Compiling DiscordKitCore APICurrentUser.swift
[130/204] Compiling DiscordKitCore APIEmoji.swift
[131/204] Compiling DiscordKitCore APIGateway.swift
[132/204] Compiling DiscordKitCore APIGuild.swift
[133/204] Compiling DiscordKitCore User.swift
[134/204] Compiling DiscordKitCore Voice.swift
[135/204] Compiling DiscordKitCore ApplicationObj.swift
[136/204] Compiling DiscordKitCore DataStructs.swift
[137/204] Compiling DiscordKitCore ChUnreadUpdate.swift
[138/204] Compiling DiscordKitCore ChannelPinsUpdate.swift
[139/204] Compiling DiscordKitCore GatewayEvent.swift
[140/204] Compiling DiscordKitCore GatewaySettingsProtoUpdate.swift
[141/204] Compiling DiscordKitCore GuildBan.swift
[142/204] Compiling DiscordKitCore GuildMemberEvt.swift
[143/204] Compiling DiscordKitCore TypingStart.swift
[144/204] Compiling DiscordKitCore TypingStartEvt.swift
[145/204] Compiling DiscordKitCore Gateway.swift
[146/204] Compiling DiscordKitCore GatewayIO.swift
[147/204] Compiling DiscordKitCore ReadState.swift
[148/204] Compiling DiscordKitCore UserSettings.swift
[149/204] Compiling DiscordKitCore LogOut.swift
[150/204] Compiling DiscordKitCore MessageReadAck.swift
[151/204] Compiling DiscordKitCore NewMessage.swift
[152/204] Compiling DiscordKitCore ResolvedInvite.swift
[153/204] Compiling DiscordKitCore APIStore.swift
[154/204] Compiling DiscordKitCore APIUser.swift
[155/204] Compiling DiscordKitCore APIVoice.swift
[156/204] Compiling DiscordKitCore APIWebhook.swift
[157/204] Compiling DiscordKitCore DecodeThrowable.swift
[158/204] Compiling DiscordKitCore DiscordRange.swift
[159/204] Compiling DiscordKitCore EventDispatch.swift
[160/204] Compiling DiscordKitCore HashedAsset.swift
[161/204] Compiling DiscordKitCore HybridSnowflake.swift
[162/204] Compiling DiscordKitCore NullEncodable.swift
[163/204] Compiling DiscordKitCore Nonce.swift
[164/204] Compiling DiscordKitCore Permission.swift
[165/204] Compiling DiscordKitCore Presence.swift
[166/204] Compiling DiscordKitCore Reaction.swift
[167/204] Compiling DiscordKitCore Snowflake.swift
[168/204] Compiling DiscordKitCore Stage.swift
[169/204] Compiling DiscordKitCore Sticker.swift
[170/204] Compiling DiscordKitCore Team.swift
[171/204] Compiling DiscordKitCore User+Flags.swift
[172/204] Compiling DiscordKitCore User+PremiumType.swift
[173/204] Emitting module DiscordKitCore
[174/204] Compiling DiscordKitCore GuildMembersChunk.swift
[175/204] Compiling DiscordKitCore GuildMiscUpdate.swift
[176/204] Compiling DiscordKitCore GuildRoleEvt.swift
[177/204] Compiling DiscordKitCore GuildSchEvtUserEvt.swift
[178/204] Compiling DiscordKitCore MessageACKEvt.swift
[179/204] Compiling DiscordKitCore MessageDelete.swift
[180/204] Compiling DiscordKitCore ReadyEvt.swift
[181/204] Compiling DiscordKitCore ReadySuppEvt.swift
[182/204] Compiling DiscordKitCore ThreadListSync.swift
[183/204] Compiling DiscordKitCore ThreadMembersUpdate.swift
[184/204] Compiling DiscordKitCore URLSession+.swift
/Users/admin/builder/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 a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence 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 | ])
[185/204] Compiling DiscordKitCore DecompressionEngine.swift
/Users/admin/builder/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 a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence 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 | ])
[186/204] Compiling DiscordKitCore GatewayIdentify.swift
/Users/admin/builder/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 a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence 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 | ])
[187/204] Compiling DiscordKitCore Intents.swift
/Users/admin/builder/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 a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence 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 | ])
[188/204] Compiling DiscordKitCore RobustWebSocket.swift
/Users/admin/builder/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 a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence 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 | ])
[189/204] Compiling DiscordKitCore Activity.swift
/Users/admin/builder/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 a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence 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 | ])
[190/204] Compiling DiscordKitCore AppCommand.swift
/Users/admin/builder/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 a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence 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 | ])
[191/204] Compiling DiscordKitCore Application.swift
/Users/admin/builder/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 a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence 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 | ])
[192/204] Compiling DiscordKitCore Attachment.swift
/Users/admin/builder/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 a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence 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 | ])
[193/204] Compiling DiscordKitCore Channel.swift
/Users/admin/builder/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 a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence 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 | ])
[194/204] Compiling DiscordKitCore Connection.swift
/Users/admin/builder/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 a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence 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 | ])
[195/204] Compiling DiscordKitCore Embed.swift
[196/204] Compiling DiscordKitCore Emoji.swift
[197/204] Compiling DiscordKitCore Guild.swift
[198/204] Compiling DiscordKitCore Integration.swift
[199/204] Compiling DiscordKitCore Interaction.swift
[200/204] Compiling DiscordKitCore Levels.swift
[201/204] Compiling DiscordKitCore Locale.swift
[202/204] Compiling DiscordKitCore Member.swift
[203/204] Compiling DiscordKitCore Mention.swift
[204/204] Compiling DiscordKitCore Message.swift
[205/247] Emitting module DiscordKitBot
[206/249] Compiling DiscordKitBot BotEmbedBuilder.swift
[207/249] Compiling DiscordKitBot EmbedFieldBuilder.swift
[208/249] Compiling DiscordKitBot ComponentBuilder.swift
[209/249] Compiling DiscordKitBot NCWrapper.swift
[210/249] Compiling DiscordKitBot NotificationNames.swift
[211/249] Compiling DiscordKitBot InteractionResponse.swift
[212/249] Compiling DiscordKitBot ActionRow.swift
[213/249] Compiling DiscordKitBot Button.swift
[214/249] Compiling DiscordKitBot AppCommandBuilder.swift
[215/249] Compiling DiscordKitBot CommandData.swift
[216/249] Compiling DiscordKitBot NewAppCommand.swift
[220/251] Compiling DiscordKitBot Client.swift
[221/251] Compiling DiscordKitBot BotEmbed.swift
[223/251] Emitting module DiscordKit
[228/251] Compiling DiscordKitBot BooleanOption.swift
[229/251] Compiling DiscordKitBot CommandOption.swift
[230/251] Compiling DiscordKitBot IntegerOption.swift
[231/251] Compiling DiscordKitBot NumberOption.swift
[232/251] Compiling DiscordKitBot OptionBuilder.swift
[233/251] Compiling DiscordKitBot StringOption.swift
[234/251] Compiling DiscordKitBot SubCommand.swift
[235/251] Compiling DiscordKitBot BotMessage.swift
[238/251] Compiling DiscordKit Status.pb.swift
[239/251] Compiling DiscordKitBot APICommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test [#no-usage]
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 [#no-usage]
197 | return
198 | }
/Users/admin/builder/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 [#no-usage]
198 | }
199 |
200 | var modifiedGuild = updatedGuild
| `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
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.
/Users/admin/builder/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 | }
/Users/admin/builder/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(_:))
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
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 [#no-usage]
65 | return
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
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 [#no-usage]
75 | return
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test [#no-usage]
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 [#no-usage]
197 | return
198 | }
/Users/admin/builder/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 [#no-usage]
198 | }
199 |
200 | var modifiedGuild = updatedGuild
| `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
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.
/Users/admin/builder/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 | }
/Users/admin/builder/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(_:))
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
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 [#no-usage]
65 | return
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
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 [#no-usage]
75 | return
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test [#no-usage]
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 [#no-usage]
197 | return
198 | }
/Users/admin/builder/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 [#no-usage]
198 | }
199 |
200 | var modifiedGuild = updatedGuild
| `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
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.
/Users/admin/builder/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 | }
/Users/admin/builder/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(_:))
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
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 [#no-usage]
65 | return
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
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 [#no-usage]
75 | return
76 | }
[250/251] Compiling DiscordKit VoiceAndVideo.pb.swift
warning: 'swift-protobuf': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-protobuf/Sources/SwiftProtobuf/CMakeLists.txt
BUILD FAILURE 6.3 macosSpm