Skip to content

Instantly share code, notes, and snippets.

@FOLLGAD
Last active May 15, 2022 10:38
Show Gist options
  • Select an option

  • Save FOLLGAD/014769071802d938440586025ea0bae0 to your computer and use it in GitHub Desktop.

Select an option

Save FOLLGAD/014769071802d938440586025ea0bae0 to your computer and use it in GitHub Desktop.
Connecting Youtube to Discord with webhooks using IFTTT

Step 1: Register on IFTTT

Make an account on https://ifttt.com if you don't have one already

Step 2: Make a Discord webhook

  1. In your Discord server, click "Server Settings", then go to "Webhooks"
  2. Click "Create Webhook"
  3. Choose a name for your Webhook, and choose in which channel you want the messages to show up in
  4. Copy the "Webhook URL" in the bottom. This url is important, and should NOT be given away. If anyone gets a hold of it, they can post messages to this channel, so keep it secret!

Step 3: Create an IFTTT service

  1. Go to https://ifttt.com, click your profile icon up to the right, then "Create"
  2. Press the big "This", search for "YouTube" and click it
  3. Select which action should trigger a message. In this example we will use "New public video uploaded by you"
  4. Press "That" and search for "Webhooks", click it
  5. Choose "Make a web request"
  6. In the URL-part, paste the URL from your webhook in Step 2.
  7. Set "Method" to "POST" and "Content Type" to "application/json"
  8. In "Body", paste this:
{
  "content": "Video title: {{title}} \n Link: {{url}}"
}

Change it if you want. 9. Press "Create Action"

Done

You now have a Webhook. You can toggle it with the large switch. If you have any questions or additions, feel free to leave a comment.

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