Skip to content
Docs

Discord step: post a message to a channel

Post a message to a Discord channel through a webhook you create in the channel's settings. How to set up the connection, and what the step can and can't do.

Updated

Post to Discord posts a message to one Discord channel through a webhook you create in Discord.

How to set it up

  1. In Discord, open the channel's settings (the gear next to its name), go to Integrations → Webhooks, click New Webhook and Copy Webhook URL.
  2. In Foliot, add a Discord connection under Connections and paste the URL. It's stored encrypted. If the webhook is deleted in Discord later, the connection shows Needs reconnecting, you get one email, and Replace webhook URL takes the new one without touching your steps.
  3. Add a Post to Discord step, choose the connection and write the Message, inserting data with + Data. Discord formatting works: **bold**, *italic*, and links are shown as you paste them.
  4. Test this step posts a real message.

Limits

  • Up to 2,000 characters per message, Discord's own limit.
  • The message goes to the channel the webhook was made for. To post somewhere else, make another webhook.
  • It only posts. Foliot can't read Discord messages, reply in threads or act as a bot.
  • When Discord is rate limiting, or can't be reached at all, the step is retried after 30 seconds, 2 minutes and 10 minutes. After a timeout or a Discord server error the message may already be there, so the step fails and asks you to check Discord instead of posting it twice.