DEV Community

Discussion on: Send automated Discord messages through Webhooks using JavaScript (Part 2 - Embeds)

Collapse
 
notzastix profile image
ZastixYT

Hey im having a problem with including fields, when i try to use them and i run the code it doesnt show the field(s), it doesnt return any error, but it runs everything else fine. Im not sure if im putting it in wrong or somthing else.

here is my code: pastebin.com/5KCc1ET7

Collapse
 
oskarcodes profile image
Oskar Codes

So I took a look at your code and it seems fine, so I think the issue is in the Webhook endpoint URL. Check if you’ve got it correct, because browsing to that URL returns a 'Unknown Webhook' response.

Collapse
 
notzastix profile image
ZastixYT • Edited

Yeah i have the webhook url correct because when i run the code it sends the all of the other data, but it doesnt send the field. picture below of what the code i sent shows:

cdn.discordapp.com/attachments/945...

Collapse
 
notzastix profile image
ZastixYT

Also if you dont mind can you send me an example of code that successfully sends the field, Thanks.