DiscordWire
Defined in: packages/platform-discord/src/wire/index.ts:12
The platform serialization boundary.
Both profiles use Components V2 JSON. The Node profile adds Resvg file encoding; the Worker profile stays URL-only. Everything above this interface is shared.
Methods
Section titled “Methods”buildModal()
Section titled “buildModal()”buildModal(
node):unknown
Defined in: packages/platform-discord/src/wire/index.ts:14
Parameters
Section titled “Parameters”BotNode
Returns
Section titled “Returns”unknown
collectModals()
Section titled “collectModals()”collectModals(
root,nodes?):BotNode[]
Defined in: packages/platform-discord/src/wire/index.ts:17
Modals in document order; pass the host’s pre-order list to avoid a walk.
Parameters
Section titled “Parameters”BotNode
nodes?
Section titled “nodes?”readonly BotNode[]
Returns
Section titled “Returns”BotNode[]
modalValues()
Section titled “modalValues()”modalValues(
node,interaction):ModalSubmitValues
Defined in: packages/platform-discord/src/wire/index.ts:15
Parameters
Section titled “Parameters”BotNode
interaction
Section titled “interaction”Returns
Section titled “Returns”serializeMessage()
Section titled “serializeMessage()”serializeMessage(
root):MessageSnapshot
Defined in: packages/platform-discord/src/wire/index.ts:13
Parameters
Section titled “Parameters”BotNode
Returns
Section titled “Returns”MessageSnapshot