mirror of
https://github.com/caronc/apprise.git
synced 2025-06-26 12:42:37 +02:00
Updated Notify_discord (markdown)
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.
|
||||
|
||||
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```
|
||||
2. **WebhookToken** is ```JHMHI8qBe7bk2ZwO5U711o3dV_js```
|
||||
|
||||
@ -47,10 +47,12 @@ Send a discord notification:
|
||||
```bash
|
||||
# Assuming our {WebhookID} is 4174216298
|
||||
# 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:
|
||||
```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
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user