Skip to content

Documentation / @debuffjp/share / postIntent

Function: postIntent() ​

postIntent(draft, to?): string

Defined in: intent.ts:25

A link that opens the X or Bluesky composer with a post drafted, for a devlog, release note or "play my game" link. Nothing is posted: the person reviews and sends it. Text that would go over the target's limit (280 weighted characters on X with links at 23, 300 graphemes on Bluesky) is cut with "…".

ts
open(postIntent({ text: "Rope physics are in", url: "https://me.itch.io/game" }), "_blank");

Parameters ​

draft ​

PostDraft

to? ​

PostTarget = "x"

Returns ​

string