Constructor
new MessageText(text)
Create a new MessageText instance.
Parameters:
Name | Type | Description |
---|---|---|
text |
String | The plain text that was received from the |
- Source:
Methods
(static) addTemplateResult(begin, end, template)
The "rich" markup parts of a chat message are represented by lit-html TemplateResult objects.
This method can be used to add new template results to this message's text.
Parameters:
Name | Type | Description |
---|---|---|
begin |
Number | The starting index of the plain message text which is being replaced with markup. |
end |
Number | The ending index of the plain message text which is being replaced with markup. |
template |
Object | The lit-html TemplateResult instance |
- Source: