-
Alert Contact Type: Web-Hook
-
URL to Notify:
https://discordapp.com/api/webhooks/CHANGEME/CHANGEME?
- Must end with
?
- Must end with
-
Send as JSON (application/json).
-
Send default variables as POST parameters
-
-
Save Log1x/af2c1a9613d155477295f20eece406a3 to your computer and use it in GitHub Desktop.
{ | |
"embeds": [ | |
{ | |
"title": "*alertDetails*", | |
"footer": { | |
"text": "Timestamp: *alertDateTime*" | |
}, | |
"thumbnail": { | |
"url": "https://i.imgur.com/00zpqHE.jpg", | |
"height": 16, | |
"width": 16 | |
}, | |
"fields": [ | |
{ | |
"name": "ID", | |
"value": "*monitorID*" | |
}, | |
{ | |
"name": "Name", | |
"value": "*monitorFriendlyName*" | |
}, | |
{ | |
"name": "Destination", | |
"value": "*monitorURL*" | |
}, | |
{ | |
"name": "Type", | |
"value": "*alertTypeFriendlyName*" | |
} | |
] | |
} | |
] | |
} |
it was a problem with uptime robot. It does not work with "ö, ä ,ü " etc. thanks for this code man. amazing
Was already wondering why I didn't get a notification, turns out that the body is actually a requirement and doesn't default to something. Thanks for providing the message body :)
what do you mean message body?
unfortunately for the latter there's no way to do a conditional here to control the embed color.
as far as the mention you should be able to add
@username
into one of the fields, but I'm not sure if it will work.
Hey, I found a workaround, it should be possible to add a message field above the embed like the screenshot
You can do this by using adding "content": "your message",
above "embeds": [
e.g.
{
"content": "@everyone bot down",
"embeds": [
...
To mention a user you can add <@USERID>
to the text field and replace "USERID" with the ID of the user or a role if you wanna do that
still working on my end