I used https://discohook.org/ to create a JSON for Discord. This should be the code at the end send to discord as webhook.
{
"content": "New message from [NAME] on your website.",
"embeds": [
{
"title": "Contactform",
"description": "**Discord-Tag:** [DISCORDTAG]\n**E-Mail:** [EMAIL]\n\n**Message**\n[MESSAGE]",
"color": 9291330,
"author": {
"name": "[NAME]",
"icon_url": "https://ennorath.org/wp-content/uploads/2020/03/mail.png"
}
}
]
}
My formular just has 4 fields: [NAME], [EMAIL], [DISCORDTAG] and [MESSAGES].
[DISCORDTAG] could be empty. The other fields have to be filled.
-
This reply was modified 5 years ago by melme.
-
This reply was modified 5 years ago by melme.