Skip to main content
Use edit() to rewrite the content of a previously sent outbound message. Edits are fire-and-forget: space.send(edit(...)) resolves to undefined.
import { edit, text } from "spectrum-ts";

const sent = await space.send("Draft");
await space.send(edit(text("Final version"), sent));
edit() cannot wrap edit, reply, reaction, group, typing, rename, avatar, or unsend content. Provider constraints surface at send time. For example, a provider may reject edits after its native edit window closes.