Use a list of users or roles to mention for Discord notifier (#188)

This commit is contained in:
CrazyMax
2020-10-09 16:57:30 +02:00
parent ab683e619d
commit 1c917d105f
6 changed files with 33 additions and 10 deletions

View File

@@ -9,19 +9,24 @@ Allow to send notifications to your Discord channel.
notif:
discord:
webhookURL: https://discordapp.com/api/webhooks/1234567890/Abcd-eFgh-iJklmNo_pqr
mention: here
mentions:
- "@here"
- "@everyone"
- "<@124>"
- "<@125>"
- "<@&200>"
timeout: 10s
```
!!! abstract "Environment variables"
* `DIUN_NOTIF_DISCORD_WEBHOOK`
* `DIUN_NOTIF_DISCORD_MENTION`
* `DIUN_NOTIF_DISCORD_MENTIONS`
* `DIUN_NOTIF_DISCORD_TIMEOUT`
| Name | Default | Description |
|--------------------|---------------|---------------|
| `webhookURL`[^1] | | Discord [incoming webhook URL](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) |
| `mention` | | Mention to directly notify a user, multiple users or roles in messages (eg. `here`) |
| `mentions` | | List of users or roles to notify |
| `timeout` | `10s` | Timeout specifies a time limit for the request to be made |
## Sample