diff --git a/src/webpage/localuser.ts b/src/webpage/localuser.ts index 47fc9a0..20b9fd3 100644 --- a/src/webpage/localuser.ts +++ b/src/webpage/localuser.ts @@ -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(){ diff --git a/src/webpage/member.ts b/src/webpage/member.ts index 91e0893..56b87c7 100644 --- a/src/webpage/member.ts +++ b/src/webpage/member.ts @@ -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;