I have set up monitors for discord using webhook, however when the alert triggers the discord message is blank. The messages via email seem to work correctly.
So i used the default ‘Discord’ action and it seems to be working just like the emails. I guess my next question is how do i send and reformat the raw webhook to discord?
I’d like to use the ‘Webhook Call’ action so i can format the data a little. For example i’d like to have the Distill title of the monitor sent over and my label.
In the documentation i found this. The following values can be used in the webhook parameter’s field.
{{sieve.id}} - Id of the monitor.
{{sieve.name}} - Name of the monitor.
{{sieve.tags}} - The label of the monitor. This only works in cloud.
{{sieve.uri}} - URL of the monitor.
{{sieve_data.text}} - Text value of the monitor.
{{sieve_data.ts}} - Timestamp when change was detected.
{{sieve_data.data}} - HTML data of the monitor.
When i used the webhook call originally by default alot of these params were being used but as you can see the message on discord was blank. Am i missing something really obvious lol
discord webhook reads content in the data and uses that to render the message’s body. you can rename name in the list of fields to content and remove everything else. here is an example: