DEV Community

loading...

Discussion on: Send automated Discord messages through Webhooks using JavaScript

Collapse
lecade09 profile image
a13bfg

How do i make it send the content that was in the text box of a html page
like an discord webhook sender

Collapse
oskarcodes profile image
Oskar Codes Author

Set the content field to the value of your input:

content: document.querySelector("input").value // could be "textarea" as well
Enter fullscreen mode Exit fullscreen mode