buildNewMessage

fun buildNewMessage(message: String = input.value, attachments: List<Attachment> = emptyList()): Message

Builds a new Message to send to our API. Based on the internal state, we use the current action's message and apply the given changes.

If we're not editing a message, we'll fill in the required data for the message.

Return

Message object, with all the data required to send it to the API.

Parameters

message

Message text.

attachments

Message attachments.