Skip to content
Untitled Sandbox - Developer Documentation
docs/types/DocumentCollection

DocumentCollection

A named set of saved documents that all share one schema, which you get from data.documents and open by key.

Fields

namestring

DocumentCollection:open

method

Loads the Document with a key and waits until it is ready, starting a new key from defaults.

DocumentCollection:open(key: string) -> Document
example
local guild = guilds:open("red-dragons")

Use it forloading a guild's saved data when one of its members joins the server.

keyThe document's key.
↑ ↓ moveEnter openEsc close