Skip to content

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.

buildModal(node): unknown

Defined in: packages/platform-discord/src/wire/index.ts:14

BotNode

unknown


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.

BotNode

readonly BotNode[]

BotNode[]


modalValues(node, interaction): ModalSubmitValues

Defined in: packages/platform-discord/src/wire/index.ts:15

BotNode

DiscordInteraction

ModalSubmitValues


serializeMessage(root): MessageSnapshot

Defined in: packages/platform-discord/src/wire/index.ts:13

BotNode

MessageSnapshot