constMail:object
Defined in: client/api.d.ts:4492
Deliver owl post from an arbitrary sender, with custom text and a portrait.
Type Declaration
Section titled “Type Declaration”compose()
Section titled “compose()”compose(
body,options?):string
Delivers a real owl: persistent, listed in the Field Guide, with a sender name, your text and a portrait. WRITES SAVE STATE.
Parameters
Section titled “Parameters”string
The letter text, free-form.
options?
Section titled “options?”object
{ from?, key?, anonymous?, live?, silent?, read? }. Sender defaults to this player’s character name; anonymous overrides from.
Returns
Section titled “Returns”string
inboxStates()
Section titled “inboxStates()”inboxStates():
string
JSON [{key, read, archived}] for every letter, archived ones included. The game only holds read state for the session, so persist it (mailRead reports each change) if it should survive a rejoin.
Returns
Section titled “Returns”string
status()
Section titled “status()”status():
string
Reads MailManager back: unread count and inbox/archive sizes.
Returns
Section titled “Returns”string