CreationKit Documentation

Structure Text​With​Attachments​Message

public struct TextWithAttachmentsMessage: MessageType  

Use this MessageType to render a message that contains text and attachments

TextWithAttachmentsMessage TextWithAttachmentsMessage MessageType MessageType TextWithAttachmentsMessage->MessageType

Conforms To

MessageType

Properties

sender

public let sender: Sender

message​Id

public let messageId: String

sent​Date

public let sentDate: Date

kind

public let kind: MessageKind

id

public var id: String  

Methods

make(id:​sender:​sent​Date:​message:​attachments:​)

public static func make(
    id: String = UUID().uuidString, sender: Sender,
    sentDate: Date = Date(), message: String, attachments: [MessageAttachment]
  ) -> TextWithAttachmentsMessage