Simple Webhook Tutorial
In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel
Step 1 - Register on Zapier
- Go to https://zapier.com/ and create an account (if you don't already have one).
Step 2 - Make a Discord Webhook
Find the Discord channel in which you would like to send Tweets
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
You can name the webhook whatever you want, and give it any image; for this tutorial we override them later anyway. Keep track of the URL; we'll need it later.
Step 3 - Make a Zap
Click the "Make a Zap" button. When selecting a trigger app, search for Twitter and select "My Tweet" and then Save + Continue
Connect your twitter account (if you haven't already) and Save & Continue
Make sure you've tweeted at least once, and press the Fetch & Continue button, and then Continue if it succeeds.
Fill in the template as shown below. Make sure to use the webhook URL we got from Step 2. Also, in the "Data" section, you can edit the fields, but don't edit the names of the fields, or Discord might not accept the input.
Also make sure to scroll down and fill this one in exactly like this:
Test to make sure that it's working. If successful, it will post to your Discord channel
Finish and turn the Zap on, so it's always running!
- Official Documentation: https://github.com/hammerandchisel/discord-api-docs/blob/master/docs/resources/Webhook.md and https://github.com/hammerandchisel/discord-api-docs/blob/master/docs/resources/Channel.md#embed-object
- Github Tutorial: https://gist.github.com/jagrosh/5b1761213e33fc5b54ec7f6379034a22
you can also use IFTTT