Skip to main content
Deno 2 is finally here 🎉️
Learn more
interface ISendMessageDetails
import { type ISendMessageDetails } from "https://deno.land/x/sptaki@1.2.0/models/spt/mod.ts";

Properties

recipientId: string

Player id

sender: MessageType

Who is sending this message

optional
dialogType: MessageType

Optional - leave blank to use sender value

optional
senderDetails: IUserDialogInfo

Optional - if sender is USER these details are used

optional
trader: Traders

Optional - the trader sending the message

optional
messageText: string

Optional - used in player/system messages, otherwise templateId is used

optional
items: Item[]

Optinal - Items to send to player

optional
itemsMaxStorageLifetimeSeconds: number

Optional - How long items will be stored in mail before expiry

optional
templateId: string

Optional - Used when sending messages from traders who send text from locale json

optional
systemData: ISystemData

Optional - ragfair related

optional
ragfairDetails: MessageContentRagfair

Optional - Used by ragfair messages

optional
profileChangeEvents: IProfileChangeEvent[]

OPTIONAL - allows modification of profile settings via mail