# Function: postIntent()

> **postIntent**(`draft`, `to?`): `string`

Defined in: [intent.ts:25](https://github.com/debuffjp/debuff/blob/b018c1a068ef1bc6d0d897e130238baa96957244/packages/share/src/intent.ts#L25)

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`](../interfaces/PostDraft.md)

### to?

[`PostTarget`](../type-aliases/PostTarget.md) = `"x"`

## Returns

`string`
