-
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
Last active
November 28, 2023 21:15
-
-
Save Log1x/af2c1a9613d155477295f20eece406a3 to your computer and use it in GitHub Desktop.
Uptime Robot Discord Webhook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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*" | |
} | |
] | |
} | |
] | |
} |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/Log1x/af2c1a9613d155477295f20eece406a3?permalink_comment_id=4057551#gistcomment-4057551
what do you mean message body?