Interface for building out a livechat message. Please note, that a room and sender must be associated otherwise you will NOT be able to successfully save the message object.
Gets the attachments array for the message
Gets the url used for the avatar.
Gets the user who edited the message
Gets the emoji used for the avatar.
Gets whether this message can group with others.
Gets the resulting message that has been built up to the point of calling it.
Note: This will error out if the Room has not been defined OR if the room is not of type RoomType.LIVE_CHAT.
Returns a message builder based on the livechat message of this builder
Gets whether this message should have its URLs parsed
Gets the room where this message was sent to.
Gets the User which sent the message.
Gets the message text.
Gets the token of the livechat visitor that sent the message
Gets the display text of the sender's username that is visible.
Get the visitor who sent the message, if any
Removes an attachment at the given position (index). If there is no attachment at that position, there will be an error thrown.
the index of the attachment to remove
Sets the url which to display for the avatar, this overwrites the current avatar whether it be the user's or an emoji one.
image url to use as the avatar
Sets the emoji to use for the avatar, this overwrites the current avatar whether it be the user's or the avatar url provided.
the emoji code
Sets whether this message can group with others. This is desirable if you want to avoid confusion with other integrations.
whether this message can group with others
Sets whether this message should have any URLs in the text parsed by Rocket.Chat and get the details added to the message's attachments.
whether URLs should be parsed in this message
Sets the text of the message.
the actual text
Set the token of the livechat visitor that sent the message
The Livechat visitor's token
Sets the display text of the sender's username that is visible.
the username alias to display
Generated using TypeDoc