Notifications for friend-messages now contain their name
MODIFY
internal/ui/window.go
internal/ui/window.go
@@ -493,7 +493,11 @@ func NewWindow(discord *discordgo.Session) (*Window, error) {
}
if mentionsYou {
- beeep.Notify("Cordless - "+channel.Name, message.ContentWithMentionsReplaced(), "assets/information.png")
+ notificationLocation := channel.Name
+ if notificationLocation == "" {
+ notificationLocation = channel.Recipients[0].Username
+ }
+ beeep.Notify("Cordless - "+notificationLocation, message.ContentWithMentionsReplaced(), "assets/information.png")
}
}
}

Notifications for friend-messages now contain their name