feat: mention @ everyone in Discord
This commit is contained in:
parent
5b10f63e65
commit
b348820674
5 changed files with 104 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue