In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel
- Go to https://zapier.com/ and create an account (if you don't already have one).
-
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.
-
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
Thank you!