mkEncryptedDigitalWorldEvent
mkEncryptedDigitalWorldEvent(
opts):Promise<DigitalWorldEvent>
Defined in: src/testing.ts:93
Create a DigitalWorldEvent representing a successfully-decrypted m.room.encrypted event.
Parameters
Section titled “Parameters”Values for the event.
eventId?
Section titled “eventId?”string
Optional event_id for the event. If provided will be used as event ID; else an ID is generated.
plainContent
Section titled “plainContent”The content the event will have, once it has been decrypted.
plainType
Section titled “plainType”string
The type the event will have, once it has been decrypted.
roomId
Section titled “roomId”string
Room ID of the event.
sender
Section titled “sender”string
The sender of the event.
Returns
Section titled “Returns”Promise<DigitalWorldEvent>