CreationKit Documentation

Structure System​Message

public struct SystemMessage: MessageType  

Use this MessageType when the Sender is a SystemSender

SystemMessage SystemMessage MessageType MessageType SystemMessage->MessageType

Nested Types

SystemMessage.Style

The style of the SystemMessage.

Conforms To

MessageType

Initializers

init(style:​sent​Date:​)

public init(style: Style, sentDate: Date = Date())  

Creates a system message.

Prefer to use the make factory method over this method.

Parameters

style Style

The style of the message.

sent​Date Date

The date of the message. Defaults to now.

Properties

sender

public var sender: Sender  

message​Id

public var messageId: String = UUID().uuidString

sent​Date

public var sentDate: Date  

kind

public var kind: MessageKind

style

public private(set) var style: Style

Methods

make(style:​sent​Date:​)

public static func make(style: Style, sentDate: Date = Date()) -> SystemMessage  

Creates a system message.

Parameters

style Style

The style of the message.

sent​Date Date

The date of the message. Defaults to now.