Class

RichReply

RichReply()

Helper for creating rich replies.
Constructor

# new RichReply()

View Source helpers/RichReply.ts, line 7

Classes

RichReply

Methods

# static createFor(roomId, event, withText, withHtml) → {any}

Generates the event content required to reply to the provided event with the provided text.
Parameters:
Name Type Description
roomId string the room ID the event being replied to resides in
event any the event to reply to
withText string the plain text to reply with
withHtml string the HTML to reply with

View Source helpers/RichReply.ts, line 58

the content of the event representing the reply
any