@vttforge/types / JournalEntryLike
Interface: JournalEntryLike ​
A journal entry.
Extends ​
Properties ​
categories ​
readonlycategories:EmbeddedCollection<DocumentMembers<Record<string,unknown>>>
documentName ​
readonlydocumentName:string
'Actor', 'Item', 'ActiveEffect', and so on.
Inherited from ​
flags ​
readonlyflags:DocumentFlags
Inherited from ​
id ​
readonlyid:string|null
Inherited from ​
img ​
readonlyimg:string|null
Inherited from ​
isOwner ​
readonlyisOwner:boolean
Whether the current user owns this document.
Inherited from ​
name ​
readonlyname:string
Inherited from ​
pages ​
readonlypages:EmbeddedCollection<DocumentMembers<Record<string,unknown>>>
parent ​
readonlyparent:DocumentMembers<Record<string,unknown>> |null
The document this one is embedded in, or null at the top level.
Inherited from ​
sort ​
readonlysort:number
system ​
readonlysystem:System
The type data model instance. Its fields are the schema's fields.
Inherited from ​
type ​
readonlytype:string
The subtype, as declared under documentTypes in the manifest.
Inherited from ​
uuid ​
readonlyuuid:string
Inherited from ​
Methods ​
delete() ​
delete(
operation?):Promise<JournalEntryLike|undefined>
Parameters ​
operation? ​
Record<string, unknown>
Returns ​
Promise<JournalEntryLike | undefined>
Inherited from ​
getFlag() ​
getFlag<
T>(scope,key):T|undefined
Type Parameters ​
T ​
T = unknown
Parameters ​
scope ​
string
key ​
string
Returns ​
T | undefined
Inherited from ​
setFlag() ​
setFlag(
scope,key,value):Promise<JournalEntryLike>
Parameters ​
scope ​
string
key ​
string
value ​
unknown
Returns ​
Promise<JournalEntryLike>
Inherited from ​
toObject() ​
toObject(
source?):Record<string,unknown>
A plain-object copy. source reads the stored data instead of the prepared data.
Parameters ​
source? ​
boolean
Returns ​
Record<string, unknown>
Inherited from ​
unsetFlag() ​
unsetFlag(
scope,key):Promise<JournalEntryLike>
Parameters ​
scope ​
string
key ​
string
Returns ​
Promise<JournalEntryLike>
Inherited from ​
update() ​
update(
data,operation?):Promise<JournalEntryLike|undefined>
Parameters ​
data ​
Record<string, unknown>
operation? ​
Record<string, unknown>
Returns ​
Promise<JournalEntryLike | undefined>