changes and fixes
This commit is contained in:
parent
19e2b5c269
commit
472da30b36
2 changed files with 7 additions and 1 deletions
|
@ -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(){
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue