Flow reference: Messages

Channel Sticky

Keep a message as the last one in a channel: set posts it as the channel's sticky, keep (after every member message) posts a new copy first and deletes the old one, remove takes it away. A burst never leaves two copies.

Keep a message as the last one in a channel: set posts it as the channel's sticky, keep (after every member message) posts a new copy first and deletes the old one, remove takes it away. A burst never leaves two copies.

When and how to use it

Setting it: a command (for example /sticky with a form) → Channel Sticky with operation set, the channel and the message designed in the message editor (text, embeds or a Components V2 layout; {variables} are filled when it is set).
Keeping it down: an automation Message Received → Is Bot (false) → Channel Sticky with operation keep and channel {channel.id}. Every channel can have its own sticky; one automation keeps all of them.
Removing it: Channel Sticky with operation remove in that channel.

Why it is fast: the bot keeps every channel's sticky in memory (and in Bottly storage table bottly_sticky, read once when the bot starts), so keep in a channel without a sticky answers none at once, without asking Discord or the storage. With a sticky it posts the new copy first and deletes the old one in the background. While a repost is running, more messages only ask for one more repost at the end, so a burst of messages never leaves two copies.

Configuration fields

Operation — operation


set posts the message as the channel's sticky (the previous one is deleted), keep moves the channel's sticky to the bottom, remove deletes it.

Input: Choice.

Default: set.


Channel — channel


The channel: an ID, a mention or a {variable}; {channel.id} is the channel the flow runs in.

Input: Text with variable suggestions.

Default: {channel.id}.


Message content (set) — content


The text of the sticky for set, next to the embeds or the layout from the message editor. keep reposts the message exactly as it was set.

Input: Text with variable suggestions.

Default: ``.


Allow @everyone and role pings — allowPings


Off: only members can be pinged by the sticky, so text from users can never mass-ping.

Input: Switch.

Default: off.

Outputs and next steps

out: The sticky was set, moved down (or a running repost will post it once more) or removed. {sticky.id} is the ID of the copy on Discord.
none: keep only: this channel has no sticky. Nothing was sent.
failed: The channel was not found or Discord refused (missing permission); {sticky.error} says why.

Test and troubleshoot

The bot needs View Channel, Send Messages and Embed Links there. The sticky's picture attachments are posted again until the bot restarts; after a restart the saved copy has its text, embeds and layout. In the Live Preview the sticky is posted and moved in the pretend channel.

Save, validate and publish. Perform one real test and read the first relevant log error. [Testing](/docs/flow-testing) · [Variables](/docs/flow-variables) · [Permissions](/docs/flow-permissions).