SessionMountOptions
Defined in: packages/platform-discord/src/render/session.ts:127
Extends
Section titled “Extends”MountWireOptions<LayerR,LayerE>
Type Parameters
Section titled “Type Parameters”LayerR
Section titled “LayerR”LayerR = never
LayerE
Section titled “LayerE”LayerE = never
Properties
Section titled “Properties”build?
Section titled “build?”
readonlyoptionalbuild?:string
Defined in: packages/platform-discord/src/render/session.ts:138
Application build fingerprint. Empty means “do not check”.
componentKey
Section titled “componentKey”
readonlycomponentKey:string
Defined in: packages/platform-discord/src/render/session.ts:132
Key the client uses to resolve the component again after a restart.
ephemeral?
Section titled “ephemeral?”
readonlyoptionalephemeral?:boolean
Defined in: packages/platform-discord/src/types.ts:30
Reply ephemerally. Only applies to interactions.
Inherited from
Section titled “Inherited from”MountWireOptions.ephemeral
readonlyoptionalid?:string
Defined in: packages/platform-discord/src/render/session.ts:139
interactionRetryMs?
Section titled “interactionRetryMs?”
readonlyoptionalinteractionRetryMs?:number
Defined in: packages/platform-discord/src/render/session.ts:149
Delay between lease attempts while waiting. Defaults to 50 ms.
interactionWindowMs?
Section titled “interactionWindowMs?”
readonlyoptionalinteractionWindowMs?:number
Defined in: packages/platform-discord/src/render/session.ts:147
How long an interaction waits for a busy writer before it is dropped. Defaults to 1 second, well inside Discord’s callback budget.
layer?
Section titled “layer?”
readonlyoptionallayer?:Layer<any,LayerE,LayerR>
Defined in: packages/platform-discord/src/render/session.ts:40
Application layers for the component tree. Requirements and errors propagate to the mount effect instead of being erased.
Inherited from
Section titled “Inherited from”MountWireOptions.layer
leaseTtlMs?
Section titled “leaseTtlMs?”
readonlyoptionalleaseTtlMs?:number
Defined in: packages/platform-discord/src/render/session.ts:142
How long an interaction lease is held. Defaults to 10 seconds.
paintLayer?
Section titled “paintLayer?”
readonlyoptionalpaintLayer?:Layer<any,never,never>
Defined in: packages/platform-discord/src/render/session.ts:46
A self-contained layer for time travel. Paint runs outside the mount, so
it cannot provide application requirements; pass this when layer needs
services if the message should stay paintable.
Inherited from
Section titled “Inherited from”MountWireOptions.paintLayer
resume?
Section titled “resume?”
readonlyoptionalresume?:DiscordMessage
Defined in: packages/platform-discord/src/types.ts:34
Continue this message instead of creating a new one.
Inherited from
Section titled “Inherited from”MountWireOptions.resume
session?
Section titled “session?”
readonlyoptionalsession?:object
Defined in: packages/platform-discord/src/render/session.ts:134
Resume an existing record. Without it a new record is created.
readonlybuild:string=Schema.String
Application build fingerprint. Empty means “do not check”.
component
Section titled “component”
readonlycomponent:string=Schema.String
Registered component key, resolved by the platform integration.
createdAt
Section titled “createdAt”
readonlycreatedAt:number=Schema.Finite
ephemeral
Section titled “ephemeral”
readonlyephemeral:boolean=Schema.Boolean
expiresAt?
Section titled “expiresAt?”
readonlyoptionalexpiresAt?:number
readonlyid:string=Schema.String
lastInteractionId?
Section titled “lastInteractionId?”
readonlyoptionallastInteractionId?:string
message?
Section titled “message?”
readonlyoptionalmessage?:object
message.channelId?
Section titled “message.channelId?”
readonlyoptionalchannelId?:string
message.guildId?
Section titled “message.guildId?”
readonlyoptionalguildId?:string
message.id
Section titled “message.id”
readonlyid:string=Schema.String
readonlyprops:unknown=Schema.Unknown
state?
Section titled “state?”
readonlyoptionalstate?:object
Index Signature
Section titled “Index Signature”[key: string]: unknown
status
Section titled “status”
readonlystatus:"closed"|"pending"|"active"
updatedAt
Section titled “updatedAt”
readonlyupdatedAt:number=Schema.Finite
version
Section titled “version”
readonlyversion:number=Schema.Int
The state version the message on the platform shows. Bumped per interaction.
sessionProps?
Section titled “sessionProps?”
readonlyoptionalsessionProps?:unknown
Defined in: packages/platform-discord/src/render/session.ts:136
Props to persist; defaults to the live props argument.
skipInitial?
Section titled “skipInitial?”
readonlyoptionalskipInitial?:boolean
Defined in: packages/platform-discord/src/types.ts:39
With resume, drop the first restored render. The caller is about to
apply an interaction, so only the post-interaction state should be sent.
Inherited from
Section titled “Inherited from”MountWireOptions.skipInitial
state?
Section titled “state?”
readonlyoptionalstate?:State
Defined in: packages/platform-discord/src/render/session.ts:48
Models from Root.snapshot to resume from.
Inherited from
Section titled “Inherited from”MountWireOptions.state
readonlyoptionalttl?:number
Defined in: packages/platform-discord/src/render/session.ts:140
unmountAfter?
Section titled “unmountAfter?”
readonlyoptionalunmountAfter?:Input
Defined in: packages/platform-discord/src/types.ts:32
Unmount after this many milliseconds.
Inherited from
Section titled “Inherited from”MountWireOptions.unmountAfter