There was an error while loading. Please reload this page.
loadDocument is a method that will take a UUID and return the full document.
uuid: string
The UUID of the document that you would like to load.
type?: string
A filter that requires that the document match the given type (e.g., 'Actor', 'Item', 'JournalEntry', etc.).
'Actor'
'Item'
'JournalEntry'
subtype?: string
A filter that requires that the document match the given subtype (the type property on the document).
type
A Promise of the document dropped if it (a) can be found and (b) matches the type and subtype provided, or null otherwise.
subtype
null
import { loadDocument } from '@revolutionarygamesco/common-foundryvtt' const actor = await loadDocument<foundry.documents.Actor>('Actor.1111111111111111', 'Actor', 'character')