allow for custom notification sounds
This commit is contained in:
parent
1ca64b1d57
commit
e791390e2d
5 changed files with 65 additions and 16 deletions
|
@ -1544,10 +1544,7 @@ class Channel extends SnowFlake {
|
|||
}
|
||||
notify(message: Message, deep = 0) {
|
||||
if (this.localuser.play) {
|
||||
const voice = this.localuser.play.audios.get(this.localuser.getNotificationSound());
|
||||
if (voice) {
|
||||
voice.play();
|
||||
}
|
||||
this.localuser.playSound();
|
||||
}
|
||||
if (!("Notification" in window)) {
|
||||
} else if (Notification.permission === "granted") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue