Patch using webhooks on DeferredChannelMessageWithSource with token and embeds

hi everyone, I've been struggling for a while and can't find an answer using the search here. I'm sure it's a silly mistake. I have a serverless bot using Interaction and application commands. Using PATCH on the webhook to modify the message works with only text { "content": "some text" } but fails with Invalid Body when using '{ "embeds": [...] } Code is here https://github.com/abaschen/enshrouded-aws/blob/40014dbf3eaaf1b75b2caaa726a0c4839fa5b721/src/functions/sendMessage/index.ts
GitHub
enshrouded-aws/src/functions/sendMessage/index.ts at 40014dbf3eaaf1...
Contribute to abaschen/enshrouded-aws development by creating an account on GitHub.
3 Replies
d.js toolkit
d.js toolkit10mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
kin.ts
kin.ts10mo ago
what does the error says?
tec
tecOP10mo ago
message: 'Invalid Form Body', code: 50035 figured it out. the URL in the embed was not in http://. I was trying to give a steam://connect link
Want results from more Discord servers?
Add your server