some reorginization

This commit is contained in:
MathMan05 2024-11-30 19:04:00 -06:00
parent e06b28742c
commit d94c20b275
17 changed files with 586 additions and 503 deletions

View file

@ -1,6 +1,6 @@
"use strict";
import{ Message }from"./message.js";
import{ AVoice }from"./audio.js";
import{ AVoice }from"./audio/audio.js";
import{ Contextmenu }from"./contextmenu.js";
import{ Guild }from"./guild.js";
import{ Localuser }from"./localuser.js";
@ -1403,7 +1403,7 @@ class Channel extends SnowFlake{
);
}
notify(message: Message, deep = 0){
AVoice.noises(AVoice.getNotificationSound());
AVoice.noises(this.localuser.getNotificationSound());
if(!("Notification" in window)){
}else if(Notification.permission === "granted"){
let noticontent: string | undefined | null = message.content.textContent;