
Option 1: A Discord RSS Bot
The quickest route. Dedicated RSS bots (MonitoRSS is the best-known) watch feeds for you and post new items in the channels you pick.
- Invite the bot to your server from its website; you need the Manage Server permission.
- Add a feed: paste the feed URL and choose the channel. Don't have the feed URL? Get it with the Feed Finder.
- Customise the message: title, link, description, image, and optional role mentions.
- Optionally add filters, for example only items whose title contains a keyword.
Free plans of bots usually limit the number of feeds and how often they are checked.
Option 2: An Automation Tool
Zapier, Make, IFTTT and n8n all combine an "RSS: new item" trigger with a "Discord: send message" action. This is handy when you want the same feed to go to several places at once, such as Discord, email and a spreadsheet, or to add logic like filters and formatting in between.
Option 3: A Webhook and Your Own Script
Discord channels accept messages through webhooks: a secret URL that anyone with the link can post to. Combined with a small script and a cron job you get full control, no limits and no third party.
Create the Webhook
- Open Server Settings › Integrations › Webhooks and click New Webhook.
- Pick the channel, give it a name and avatar (the bot name readers will see), and Copy Webhook URL.
- Keep the URL secret. If it leaks, delete the webhook and create a new one.
The Script (PHP)
This script uses our free RSS to JSON API, so it works with RSS, Atom and JSON Feed alike. It remembers what it has posted and, on the first run, only marks existing items as seen so your channel isn't flooded.
<?php
$feeds = ['https://example.com/feed.xml', 'https://www.youtube.com/feeds/videos.xml?channel_id=UCxxxxxxxxxxxxxxxxxxxxxx'];
$webhook = 'https://discord.com/api/webhooks/ID/TOKEN';
$stateFile = __DIR__ . '/discord-seen.json';
$firstRun = !is_file($stateFile);
$seen = $firstRun ? [] : json_decode(file_get_contents($stateFile), true);
foreach ($feeds as $feed) {
$data = json_decode(@file_get_contents('https://rssfeeds.com/api/v1/feed?nocontent=1&count=10&url=' . urlencode($feed)), true);
if (($data['status'] ?? '') !== 'ok') continue;
foreach (array_reverse($data['items']) as $item) {
$id = $item['guid'] ?: $item['link'];
if (isset($seen[$id])) continue;
$seen[$id] = time();
if ($firstRun) continue;
$embed = array_filter([
'title' => mb_substr($item['title'], 0, 256),
'url' => $item['link'],
'description' => mb_substr($item['description'], 0, 300),
'timestamp' => $item['published'],
'color' => 0xF26A1B,
'thumbnail' => $item['thumbnail'] ? ['url' => $item['thumbnail']] : null,
'footer' => ['text' => $data['feed']['title']],
]);
$ch = curl_init($webhook);
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ['Content-Type: application/json'], CURLOPT_POSTFIELDS => json_encode(['embeds' => [$embed]])]);
curl_exec($ch);
curl_close($ch);
sleep(2);
}
}
arsort($seen);
file_put_contents($stateFile, json_encode(array_slice($seen, 0, 2000, true)));Run It Every 10 Minutes
*/10 * * * * php /home/user/scripts/rss-to-discord.phpOn DirectAdmin, cPanel or Plesk you can add the same command under Cron Jobs.
Formatting Tips
- Embeds look best: title with link, a short description, a thumbnail and the feed name in the footer, as in the script.
- Plain links (
{"content": "https://…"}) let Discord create its own link preview instead. - Mention a role for important feeds by adding
"content": "<@&ROLE_ID>"next to the embed. - Limits: an embed title can be 256 characters and a description 4,096. Webhooks are rate-limited, so the script pauses between messages.
Feeds Worth Posting in Discord
- Your own blog, newsletter or podcast, for your community.
- YouTube uploads of your channel: see YouTube RSS Feed.
- GitHub releases of the software your community uses:
https://github.com/OWNER/REPO/releases.atom. - Subreddit posts or searches: see Reddit RSS Feed.
- Status pages of services you depend on – most publish an RSS or Atom feed.
- Game patch notes and news; many developers publish feeds.
Sources and Further Reading
- Intro to WebhooksDiscord Support