mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-25 06:49:28 +01:00
Use a list of users or roles to mention for Discord notifier (#188)
This commit is contained in:
@@ -62,8 +62,14 @@ func TestLoadFile(t *testing.T) {
|
||||
},
|
||||
Discord: &model.NotifDiscord{
|
||||
WebhookURL: "https://discordapp.com/api/webhooks/1234567890/Abcd-eFgh-iJklmNo_pqr",
|
||||
Mention: "here",
|
||||
Timeout: utl.NewDuration(10 * time.Second),
|
||||
Mentions: []string{
|
||||
"@here",
|
||||
"@everyone",
|
||||
"<@124>",
|
||||
"<@125>",
|
||||
"<@&200>",
|
||||
},
|
||||
Timeout: utl.NewDuration(10 * time.Second),
|
||||
},
|
||||
Gotify: &model.NotifGotify{
|
||||
Endpoint: "http://gotify.foo.com",
|
||||
|
||||
Reference in New Issue
Block a user