IFTTT

IFTTT is very awesome service for connecting services. It supports Webhooks, so we can use it with Discord.

Account on IFTTT

Visit IFTTT and create an account (if you have not one).

Webhook on Discord

  1. Go to Server settings -> Webhooks -> Create Webhook
  2. Setup name, avatar and the channel where messages will be posted. Copy Webhook URL. Do not share it! This is very dangerous!
  3. Click Save button

Creating an Applet

If this

  1. Go to My Applets -> New Applet
  2. Click [+]this
  3. Choose a service
  4. Choose the trigger. Read the description below every trigger and choose the needed one
  5. Complete trigger fields. Here can be more than one step. Read the descriptions and examples

Then that

  1. Click [+]that
  2. Choose the action service. You need Webhooks. Use the search bar
  3. Choose action. Choose Make a web request
  4. Paste the Webhook URL in URL field
  5. Select POST method
  6. Select application/json as Content Type
  7. And now the hardest part™. You need to create JSON body for request. Follow the structure (can be found in this guide), use it as an example and don't forget about common sense™. Press + Ingredient button and put the Ingredients into appropriate fields.
  8. Click Create Action and then Finish.
  9. Done!

Tips

  • Escape the Ingredients! Add <<< & >>> around them. That going to help to fix problems that can be caused by unescaped characters. Escaping links is optional.
  • Don't forget to check your JSON body with a JSON validator. If you don't know any, use one of these:

  • I highly recommend to use this Embed Visualizer. Don't forget to enable webhook mode and add json body for testing.

  • Discord has built-in embeds for Twitter, Youtube and other sites so you can make even simpler webhook: {"content": "{{Url}}"}. Just give it a try.