changes and fixes

This commit is contained in:
MathMan05 2024-11-08 15:05:37 -06:00
parent 19e2b5c269
commit 472da30b36
2 changed files with 7 additions and 1 deletions

View file

@ -534,6 +534,10 @@ class Localuser{
guild.memberupdate(temp.d)
break
}
default :{
//@ts-ignore
console.warn("Unhandled case "+temp.t,temp);
}
}
@ -549,6 +553,8 @@ class Localuser{
if(this.connectionSucceed === 0)this.connectionSucceed = Date.now();
this.ws.send(JSON.stringify({ op: 1, d: this.lastSequence }));
}, this.heartbeat_interval);
}else{
console.log("Unhandled case "+temp.d,temp);
}
}
get currentVoice(){

View file

@ -254,7 +254,7 @@ class Member extends SnowFlake{
["title", I18n.getTranslation("member.ban",this.name,this.guild.properties.name)],
[
"textbox",
I18n.getTranslation("member.reason",this.name,this.guild.properties.name),
I18n.getTranslation("member.reason:",this.name,this.guild.properties.name),
"",
function(e: Event){
reason = (e.target as HTMLInputElement).value;