Skip to content

mkEncryptedDigitalWorldEvent

mkEncryptedDigitalWorldEvent(opts): Promise<DigitalWorldEvent>

Defined in: src/testing.ts:93

Create a DigitalWorldEvent representing a successfully-decrypted m.room.encrypted event.

Values for the event.

string

Optional event_id for the event. If provided will be used as event ID; else an ID is generated.

IContent

The content the event will have, once it has been decrypted.

string

The type the event will have, once it has been decrypted.

string

Room ID of the event.

string

The sender of the event.

Promise<DigitalWorldEvent>