Welshman Docs / @welshman/domain / ListReader
Class: abstract ListReader ​
Defined in: core/ListReader.ts:5
A reader that has to decrypt (or otherwise await something) before its accessors are complete. parse() returns a promise, so the type system makes callers await it rather than silently reading a half-parsed event.
Extends ​
Extended by ​
Constructors ​
Constructor ​
new ListReader(
kind,context,event):ListReader
Defined in: core/EventReader.ts:21
Parameters ​
kind ​
number
context ​
event ​
Returns ​
ListReader
Inherited from ​
Properties ​
context ​
readonlycontext:KindContext
Defined in: core/EventReader.ts:23
Inherited from ​
decrypted ​
decrypted:
boolean=false
Defined in: core/ListReader.ts:6
event ​
readonlyevent:TrustedEvent
Defined in: core/EventReader.ts:24
Inherited from ​
kind ​
readonlykind:number
Defined in: core/EventReader.ts:22
Inherited from ​
privateTags ​
privateTags:
string[][] =[]
Defined in: core/ListReader.ts:8
publicTags ​
publicTags:
string[][] =[]
Defined in: core/ListReader.ts:7
Methods ​
address() ​
address():
string
Defined in: core/EventReader.ts:59
Returns ​
string
Inherited from ​
author() ​
author():
string
Defined in: core/EventReader.ts:39
Returns ​
string
Inherited from ​
client() ​
client():
undefined|Client
Defined in: core/EventReader.ts:83
Returns ​
undefined | Client
Inherited from ​
content() ​
content():
string
Defined in: core/EventReader.ts:43
Returns ​
string
Inherited from ​
contentWarning() ​
contentWarning():
boolean
Defined in: core/EventReader.ts:75
Returns ​
boolean
Inherited from ​
AsyncEventReader.contentWarning
contentWarningReason() ​
contentWarningReason():
undefined|string
Defined in: core/EventReader.ts:79
Returns ​
undefined | string
Inherited from ​
AsyncEventReader.contentWarningReason
createdAt() ​
createdAt():
number
Defined in: core/EventReader.ts:51
Returns ​
number
Inherited from ​
emojis() ​
emojis():
Emoji[]
Defined in: core/EventReader.ts:87
Returns ​
Emoji[]
Inherited from ​
expiration() ​
expiration():
undefined|number
Defined in: core/EventReader.ts:71
Returns ​
undefined | number
Inherited from ​
id() ​
id():
string
Defined in: core/EventReader.ts:35
Returns ​
string
Inherited from ​
identifier() ​
identifier():
undefined|string
Defined in: core/EventReader.ts:55
Returns ​
undefined | string
Inherited from ​
parse() ​
parse():
Promise<ListReader>
Defined in: core/ListReader.ts:10
Returns ​
Promise<ListReader>
Overrides ​
protect() ​
protect():
boolean
Defined in: core/EventReader.ts:67
Returns ​
boolean
Inherited from ​
room() ​
room():
undefined|string
Defined in: core/EventReader.ts:63
Returns ​
undefined | string
Inherited from ​
tags() ​
tags():
string[][]
Defined in: core/ListReader.ts:38
Returns ​
string[][]
Overrides ​
zapSplits() ​
zapSplits():
ZapSplit[]
Defined in: core/EventReader.ts:91
Returns ​
ZapSplit[]