getMessageNode
getMessageNode: (ChatMessage) -> MessageNode?The message in the chatbox: edit it with setValue, setName, setClientFormatMessage. nil for a message the differ reported.
| Method | Returns | Description |
|---|---|---|
getMessageNode() | MessageNode? | The message in the chatbox: edit it with setValue, setName, setClientFormatMessage. nil for a message the differ reported. |
getType() | ChatMessageType | The message's type: CLAN_GIM_CHAT / CLAN_GIM_MESSAGE for a line of your group-ironman channel. |
getName() | string | The sender's name as received (icon tags included), "" for a game message. |
getMessage() | string | The message's text (a group-ironman line's without the | the game stores before it). |
getSender() | string? | The friends-chat or clan channel it came through, or nil. |
getTimestamp() | number | When it was added, in seconds since the Unix epoch. |
setMessageNode(MessageNode?) | () | Set the node later subscribers read (not the chatbox). |
setType(ChatMessageType) | () | Set the type later subscribers read. |
setName(string?) | () | Set the name later subscribers read. |
setMessage(string?) | () | Set the text later subscribers read (the chatbox keeps its own: use the node's setValue for that). |
setSender(string?) | () | Set the channel later subscribers read. |
setTimestamp(number) | () | Set the timestamp later subscribers read. |
| Field | Type | Description |
|---|---|---|
__eventClass | string | "ChatMessage": the class's name, which host APIs that take the class itself read. |
getMessageNodegetMessageNode: (ChatMessage) -> MessageNode?The message in the chatbox: edit it with setValue, setName, setClientFormatMessage. nil for a message the differ reported.
getTypegetType: (ChatMessage) -> ChatMessageTypeThe message's type: CLAN_GIM_CHAT / CLAN_GIM_MESSAGE for a line of your group-ironman channel.
getNamegetName: (ChatMessage) -> stringThe sender's name as received (icon tags included), "" for a game message.
getMessagegetMessage: (ChatMessage) -> stringThe message's text (a group-ironman line's without the | the game stores before it).
getSendergetSender: (ChatMessage) -> string?The friends-chat or clan channel it came through, or nil.
getTimestampgetTimestamp: (ChatMessage) -> numberWhen it was added, in seconds since the Unix epoch.
setMessageNodesetMessageNode: (ChatMessage, MessageNode?) -> ()Set the node later subscribers read (not the chatbox).
setTypesetType: (ChatMessage, ChatMessageType) -> ()Set the type later subscribers read.
setNamesetName: (ChatMessage, string?) -> ()Set the name later subscribers read.
setMessagesetMessage: (ChatMessage, string?) -> ()Set the text later subscribers read (the chatbox keeps its own: use the node's setValue for that).
setSendersetSender: (ChatMessage, string?) -> ()Set the channel later subscribers read.
setTimestampsetTimestamp: (ChatMessage, number) -> ()Set the timestamp later subscribers read.