cleaning up code and ditching .owner

This commit is contained in:
MathMan05 2024-06-23 14:27:54 -05:00
parent b9dcd46ea5
commit c60ce8cd99
6 changed files with 138 additions and 117 deletions

View file

@ -238,7 +238,7 @@ class localuser{
console.log(guild);
guild.loadChannel(location[5]);
console.log(location[5])
this.channelfocus=location[5];
this.channelfocus=guild.channelids[location[5]];
}
this.buildservers();
}
@ -356,7 +356,7 @@ class localuser{
}
messageCreate(messagep){
messagep.d.guild_id??="@me";
this.guildids[messagep.d.guild_id].channelids[messagep.d.channel_id].messageCreate(messagep,this.channelfocus===messagep.d.channel_id);
this.guildids[messagep.d.guild_id].channelids[messagep.d.channel_id].messageCreate(messagep,this.channelfocus.id===messagep.d.channel_id);
this.unreads();
}
unreads(){
@ -367,7 +367,7 @@ class localuser{
}
}
typeingStart(typing){
if(this.channelfocus===typing.d.channel_id){
if(this.channelfocus.id===typing.d.channel_id){
const memb=typing.d.member;
let name;
if(memb.id===this.user.id){