This topic was automatically generated from Slack. You can find the original thread here.
Nigel De Meulenaere : hello how do i run discord embeds in the webhook message mode ? i tried running simple code and it still returns error 400
This topic was automatically generated from Slack. You can find the original thread here.
Nigel De Meulenaere : hello how do i run discord embeds in the webhook message mode ? i tried running simple code and it still returns error 400
Dylan Sather (Pipedream) : take a look at https://docs.pipedream.com/apps/discord/#example-send-an-embed and let me know if that helps
Nigel De Meulenaere : Hello , i just tried the code example in the doc file and i still get the status code 400 error
Dylan Sather (Pipedream) : I’d try taking a look at some more examples of specific embeds from Embeds | Discord.js Guide and other sources. A 400 error indicates that there’s something malformed about the format of the embed / message you’re trying to send to Discord
Nigel De Meulenaere : Yes but even if i copy and past the example of the documentation it still produces the error. i assume the examples that are provided are correct ?
Dylan Sather (Pipedream) : Can you try to copy this workflow anew? Discord embed example - Pipedream
I hadn’t made one of the params public, but you should see the embed data correctly being passed to the Discord step now.
Nigel De Meulenaere : oh the embed is a sepret block and then called up on
Nigel De Meulenaere : i see now
Dylan Sather (Pipedream) : yes exactly, I find with complex embeds like this it’s easier to format the object in its own code step, and then pass that to the next step via params
Nigel De Meulenaere : i was trying to inject the embed in the embed parameter
Nigel De Meulenaere : it’s a bit confusing to do it like this but also makes sence but now i know so i can start writhing my json
Dylan Sather (Pipedream) : Have you seen https://docs.pipedream.com/workflows/steps/ and https://docs.pipedream.com/workflows/steps/params/ ? Lots more examples there on how you can export data from steps and pass params to steps. Let me know if that help
Nigel De Meulenaere : ill look into it but first i’m trying to get my json code to work with the embed injection
Nigel De Meulenaere : in the near futhure will there be a way to trigger twitch without email trigger ?
Dylan Sather (Pipedream) : Can you tell me more about what you mean?
Nigel De Meulenaere : a trigger that fires when somebody comes online on twitch
Dylan Sather (Pipedream) : gotcha, I just raised a feature request to track this: [SOURCE] Twitch: user is online · Issue #555 · PipedreamHQ/pipedream · GitHub
Dylan Sather (Pipedream) : how comfortable are you with Node.js code? You can technically author event sources yourself, so if you’re interested you could pair with our team to author this and ship it for all users. Check out this quickstart for more information on event source development: pipedream/QUICKSTART.md at master · PipedreamHQ/pipedream · GitHub
Nigel De Meulenaere : to be honest i’m a bit rusty on my coding but i have been looking for a new project to kill some spare time.
Dylan Sather (Pipedream) : awesome, yeah it’s pretty fun to develop an event source (I’m biased though ) - pretty magical once you get it working end to end! The Twitch API has some complexity but again, we’re happy to help support you if you’d like to give it a go