QueuedMessage

Methods
11
Fields
None

Getting one

QueuedMessage.builder():build()

Methods

MethodReturnsDescription
getType()ChatMessageType?Its type.
getValue()string?Its plain value, or nil.
getName()string?The sender's name, or nil.
setName(string?)()Set the sender's name.
getSender()string?The channel, or nil.
setSender(string?)()Set the channel.
getClientFormattedMessage()string?The client-formatted markup, or nil.
setClientFormattedMessage(string?)()Set the client-formatted markup.
getTimestamp()numberThe timestamp to give the message (Unix seconds), 0 for "when it is added".
setTimestamp(number)()Set the timestamp to give the message.
builder()QueuedMessageBuilderA new builder.

Returned by

MethodReturnsDescription
QueuedMessageBuilder.buildQueuedMessageThe message. Raises when no type was given.

Method details

getTimestamp

getTimestamp: (QueuedMessage) -> number

The timestamp to give the message (Unix seconds), 0 for "when it is added".