* Appends text to the pad. * * @param {string} newText - Text to insert just BEFORE the pad's existing terminating newline. * @param {string} [authorId] - The author ID of the user that initiated the change, if * applicable.
(newText:string, authorId = '')
| 520 | * applicable. |
| 521 | */ |
| 522 | async appendText(newText:string, authorId = '') { |
| 523 | await this.spliceText(this.text().length - 1, 0, newText, authorId); |
| 524 | } |
| 525 | |
| 526 | /** |
| 527 | * Adds a chat message to the pad, including saving it to the database. |
no test coverage detected