Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Mail

const Mail: object

Defined in: client/api.d.ts:4492

Deliver owl post from an arbitrary sender, with custom text and a portrait.

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.

string

The letter text, free-form.

object

{ from?, key?, anonymous?, live?, silent?, read? }. Sender defaults to this player’s character name; anonymous overrides from.

string

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.

string

status(): string

Reads MailManager back: unread count and inbox/archive sizes.

string