remove more unused code
This commit is contained in:
@@ -586,18 +586,11 @@ class Localuser {
|
|||||||
if (this.channelfocus.id === typing.d.channel_id) {
|
if (this.channelfocus.id === typing.d.channel_id) {
|
||||||
const guild = SnowFlake.getSnowFlakeFromID(typing.d.guild_id, Guild).getObject();
|
const guild = SnowFlake.getSnowFlakeFromID(typing.d.guild_id, Guild).getObject();
|
||||||
const memb = await Member.new(typing.d.member, guild);
|
const memb = await Member.new(typing.d.member, guild);
|
||||||
let name;
|
|
||||||
if (memb.id === this.user.id) {
|
if (memb.id === this.user.id) {
|
||||||
console.log("you is typing");
|
console.log("you is typing");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("user is typing and you should see it");
|
console.log("user is typing and you should see it");
|
||||||
if (memb.nick) {
|
|
||||||
name = memb.nick;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
name = memb.user.username;
|
|
||||||
}
|
|
||||||
this.typing.set(memb, new Date().getTime());
|
this.typing.set(memb, new Date().getTime());
|
||||||
setTimeout(this.rendertyping.bind(this), 10000);
|
setTimeout(this.rendertyping.bind(this), 10000);
|
||||||
this.rendertyping();
|
this.rendertyping();
|
||||||
|
@@ -603,17 +603,11 @@ class Localuser{
|
|||||||
if(this.channelfocus.id===typing.d.channel_id){
|
if(this.channelfocus.id===typing.d.channel_id){
|
||||||
const guild=SnowFlake.getSnowFlakeFromID(typing.d.guild_id,Guild).getObject()
|
const guild=SnowFlake.getSnowFlakeFromID(typing.d.guild_id,Guild).getObject()
|
||||||
const memb=await Member.new(typing.d.member,guild);
|
const memb=await Member.new(typing.d.member,guild);
|
||||||
let name;
|
|
||||||
if(memb.id===this.user.id){
|
if(memb.id===this.user.id){
|
||||||
console.log("you is typing")
|
console.log("you is typing")
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("user is typing and you should see it");
|
console.log("user is typing and you should see it");
|
||||||
if(memb.nick){
|
|
||||||
name=memb.nick;
|
|
||||||
}else{
|
|
||||||
name=memb.user.username;
|
|
||||||
}
|
|
||||||
this.typing.set(memb,new Date().getTime());
|
this.typing.set(memb,new Date().getTime());
|
||||||
setTimeout(this.rendertyping.bind(this),10000);
|
setTimeout(this.rendertyping.bind(this),10000);
|
||||||
this.rendertyping();
|
this.rendertyping();
|
||||||
|
Reference in New Issue
Block a user