     var failed: Bool
     var mentions: [Mention]
     var channels: [Channel]
+    var urls: [UnmanagedMessageURL]
     var reactions: [MessageReaction]
     var createdAt: Date?
     var updatedAt: Date?

        emoji = message.emoji
        avatar = message.avatar

        attachments = message.attachments.compactMap({ attachment in
            if attachment.isFile && attachment.fullFileURL() != nil {
                return attachment


import Foundation
import DifferenceKit

struct UnmanagedMessageURL {
    var url: String
    var title: String
    var subtitle: String
    var imageURL: String?
}

struct UnmanagedMessage: UnmanagedObject, Equatable {
    typealias Object = Message
