Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mos:evdiscord [2024/09/18 00:50] (current)
optrix created
Line 1: Line 1:
 +====Discord====
  
 +This output is used to write a Discord message to an existing Discord WebHook.
 +
 +^Parameter^Default^Meaning^
 +|**url**||The Discord WebHook URL|
 +|**message**||A list of JSON parameters to set (using periods for dictionaries) that may include [[event_codes|event substitutions]]|
 +
 +===Example===
 +
 +<code>
 +[
 +   {
 +       "method": "discord",
 +       "url": "http://<mydiscordurl>",
 +       "message":
 +           "author.name": "Notifications",
 +           "footer.text": "@ %S",
 +           "title": "%M",
 +           "description": "This is to let you know that %M."
 +       }
 +   }
 +]
 +</code>
 +
 +//The above example would send a Discord notification with the message appearing in both the title and in the description..//.
 +
 +===Other Modules===
 +
 +Return to the [[event_methods|list of output modules]].