discordo/internal/notifications/desktop_toast_darwin.go
2025-09-25 11:33:38 -04:00

19 lines
366 B
Go

//go:build darwin
package notifications
import (
gosxnotifier "github.com/deckarep/gosx-notifier"
)
func sendDesktopNotification(title string, message string, image string, playSound bool, _ int) error {
n := gosxnotifier.NewNotification(message)
n.Title = title
n.ContentImage = image
if playSound {
n.Sound = gosxnotifier.Default
}
return n.Push()
}