Updated Notify_discord (markdown)

Chris Caron 2020-07-29 13:48:03 -04:00
parent 905f7d07ba
commit 7e389fbcc0

@ -16,7 +16,7 @@ This effectively equates to:
**Note:** Apprise supports this URL _as-is_ (_as of v0.7.7_); you no longer need to parse the URL any further. However there is slightly less overhead (internally) if you do. **Note:** Apprise supports this URL _as-is_ (_as of v0.7.7_); you no longer need to parse the URL any further. However there is slightly less overhead (internally) if you do.
The last part of the URL you're given make up the 2 tokens you need to send notifications with. It's very important to pay attention. In the above example the tokens are as follows: The last part of the URL you're given make up the 2 tokens you need to send notifications with. With respect to the above example the tokens are as follows:
1. **WebhookID** is ```4174216298``` 1. **WebhookID** is ```4174216298```
2. **WebhookToken** is ```JHMHI8qBe7bk2ZwO5U711o3dV_js``` 2. **WebhookToken** is ```JHMHI8qBe7bk2ZwO5U711o3dV_js```
@ -47,10 +47,12 @@ Send a discord notification:
```bash ```bash
# Assuming our {WebhookID} is 4174216298 # Assuming our {WebhookID} is 4174216298
# Assuming our {WebhookToken} is JHMHI8qBe7bk2ZwO5U711o3dV_js # Assuming our {WebhookToken} is JHMHI8qBe7bk2ZwO5U711o3dV_js
apprise discord://4174216298/JHMHI8qBe7bk2ZwO5U711o3dV_js apprise -t "Test Message Title" -b "Test Message Body" \
discord://4174216298/JHMHI8qBe7bk2ZwO5U711o3dV_js
``` ```
If you want to have your own custom avatar URL you're already hosting from another website, you could set the following: If you want to have your own custom avatar URL you're already hosting from another website, you could set the following:
```bash ```bash
apprise discord://4174216298/JHMHI8qBe7bk2ZwO5U711o3dV_js?avatar_url=https://i.imgur.com/FsEpmwg.jpeg apprise -t "Test Message Title" -b "Test Message Body" \
discord://4174216298/JHMHI8qBe7bk2ZwO5U711o3dV_js?avatar_url=https://i.imgur.com/FsEpmwg.jpeg
``` ```