Skip to content

Instantly share code, notes, and snippets.

@alexanderklatt
Last active December 13, 2022 18:21
Show Gist options
  • Save alexanderklatt/5053abefe5447fe8dc3f5f9b6e6b9aa0 to your computer and use it in GitHub Desktop.
Save alexanderklatt/5053abefe5447fe8dc3f5f9b6e6b9aa0 to your computer and use it in GitHub Desktop.
IFTTT Post Request JSON Body - Embedded Discord Message When Stream Goes Live
{
"embeds":[
{
"title":"<<< {{ChannelName}} is live on Twitch!>>>",
"url":"<<<{{ChannelUrl}}>>>",
"description":"<<<{{Game}}>>>"
}
]
}
@damnshortaay
Copy link

Hi, that's a cool JSON message! Would I be able to ping a role like this too?

I was able to ping a role by adding the following

{
"content": "<@&ROLEID>",
"embeds":[
{
"title":"<<< {{ChannelName}} is live on Twitch!>>>",
"url":"<<<{{ChannelUrl}}>>>",
"description":"<<<{{Game}}>>>"
}
]
}

@bavario-lginc
Copy link

Thank you! That worked!

@alexanderklatt
Copy link
Author

Hi, that's a cool JSON message! Would I be able to ping a role like this too?

I was able to ping a role by adding the following

{
"content": "<@&ROLEID>",
"embeds":[
{
"title":"<<< {{ChannelName}} is live on Twitch!>>>",
"url":"<<<{{ChannelUrl}}>>>",
"description":"<<<{{Game}}>>>"
}
]
}

Nice! Thanks for posting.

@ST0D0
Copy link

ST0D0 commented Apr 29, 2021

wait so how could i @everyone cuz i'm having trouble to figure this stuff out

@atomracer
Copy link

wait so how could i @everyone cuz i'm having trouble to figure this stuff out

{
"content": "<@everyone>",
"embeds":[
{
"title":"<<< {{ChannelName}} is live on Twitch!>>>",
"url":"<<<{{ChannelUrl}}>>>",
"description":"<<<{{Game}}>>>"
}
]
}

@muditdua
Copy link

Hi, that's a cool JSON message! Would I be able to ping a role like this too?

I was able to ping a role by adding the following
{
"content": "<@&ROLEID>",
"embeds":[
{
"title":"<<< {{ChannelName}} is live on Twitch!>>>",
"url":"<<<{{ChannelUrl}}>>>",
"description":"<<<{{Game}}>>>"
}
]
}

Nice! Thanks for posting.

hey this is now giving error:( when i m posting this on ifttt it shows error in "url" , "Channel name " " channel url" :(( plsss fix this if u can plssssssssssssss:((((

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