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://ifttt.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 can post messages to this channel using it, 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 on you profile icon in the top right corner
- Click on
Create
- Click on
This
- Search for
Twitter
- Click on the Twitter square
- Select a trigger like
New tweet by you
orNew tweet by a specific user
- Set the options for the selected trigger (depending on which you selected)
- Click on
That
- Search for
Webhook
- Select the Webhook square
- Select the
Make a web request
action
- Paste your webhook URL in the URL box.
- Select
Post
in method, andapplication/json
in content type. - Paste the following snippet into the
Body
field and modify it to your liking. You should at least set theicon_url
. (You can add other details like the post time, click theAdd ingredient
button to see what is available)
{
"username":"@{{UserName}}",
"icon_url":"<url to image>",
"content":"{{LinkToTweet}}"
}
Now what you have to do is just click Create Action
. It will start to run immediately.
Hello
I am doing something very simple :
However, when there is a integrated link in the tweet, it isn't shown in my discord server. Do you know how to keep integrated link in my discord server?