Updated Notify_discord (markdown)

Chris Caron 2023-12-28 12:13:28 -05:00
parent b5e4534e4a
commit 89568b806d

@ -20,6 +20,12 @@ The last part of the URL you're given make up the 2 tokens you need to send noti
1. **WebhookID** is ```4174216298```
2. **WebhookToken** is ```JHMHI8qBe7bk2ZwO5U711o3dV_js```
### Pinging Roles, Tags, and Users
The discord message body can contain content such as the following to trigger the appropriate pings
- **user**: `<@123>`
- **role**: `<@&456>`
- **tag**: `@everyone`
### Syntax
Valid syntax is as follows:
* `https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}`
@ -60,3 +66,10 @@ If you want to have your own custom avatar URL you're already hosting from anoth
apprise -vv -t "Test Message Title" -b "Test Message Body" \
"discord://4174216298/JHMHI8qBe7bk2ZwO5U711o3dV_js?avatar_url=https://i.imgur.com/FsEpmwg.jpeg"
```
Send a notification that notifies `@everyone` in the channel:
```bash
# Assuming our {WebhookID} is 4174216298
# Assuming our {WebhookToken} is JHMHI8qBe7bk2ZwO5U711o3dV_js
apprise -vv -t "Hello All" -b "Test Message that pings @everyone" \
"discord://4174216298/JHMHI8qBe7bk2ZwO5U711o3dV_js"
```