Skip to content

Instantly share code, notes, and snippets.

@m-p-3
Created August 30, 2019 17:33
Show Gist options
  • Save m-p-3/9d1553ccd8e214519d7e41fe9fdc905e to your computer and use it in GitHub Desktop.
Save m-p-3/9d1553ccd8e214519d7e41fe9fdc905e to your computer and use it in GitHub Desktop.
Reddit to Discord Webhook in IFTTT
This: Reddit
Trigger: Any new post in subreddit
That: Webhooks
Action: Make a web request
URL: (your Discord webhook URL, DO NOT SHARE)
Method: POST
Content Type: application/json
Body:
{ "embeds":
[
{
"title": "<<<{{Title}}>>>",
"url": "<<<{{PostURL}}>>>",
"description": "<<<{{Content}}>>>",
"thumbnail": {
"url": "<<<{{ImageURL}}>>>"
},
"footer": {
"icon_url": "https://www.redditstatic.com/desktop2x/img/favicon/favicon-32x32.png",
"text": "/u/<<<{{Author}}>>> | <<<{{PostedAt}}>>>"
}
}
]
}
@Robo338
Copy link

Robo338 commented Aug 20, 2020

use "image" instead of "thumbnail" to get bigger picture
for example:

{ "embeds":
[
{
"title": "<<<{{Title}}>>>",
"url": "<<<{{PostURL}}>>>",
"description": "<<<{{Content}}>>>",
"image": {
"url": "<<<{{ImageURL}}>>>"
},
"footer": {
"icon_url": "https://www.redditstatic.com/desktop2x/img/favicon/favicon-32x32.png",
"text": "/u/<<<{{Author}}>>> | <<<{{PostedAt}}>>>"
}
}
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment