feat: mention @ everyone in Discord
Some checks are pending
Test and Build / test (push) Waiting to run
Test and Build / build (push) Blocked by required conditions

This commit is contained in:
nullishamy 2025-04-04 23:33:17 +01:00
parent 5b10f63e65
commit b348820674
Signed by: amy
SSH key fingerprint: SHA256:WmV0uk6WgAQvDJlM8Ld4mFPHZo02CLXXP5VkwQ5xtyk
5 changed files with 104 additions and 1 deletions

View file

@ -51,7 +51,7 @@ func (dn *DiscordNotifier) SendNotification(c context.Context, notification *nMo
return errors.New("unable to send notification, text is empty")
}
return dn.sendMessage(c, notification.TargetID, notification.Text)
return dn.sendMessage(c, notification.TargetID, notification.Text + "\n\n@everyone")
}
func (dn *DiscordNotifier) sendMessage(c context.Context, webhookURL string, message string) error {