Fixed a Bug causing client to be unable to load
This commit is contained in:
parent
057a29a4f4
commit
8e89e9929b
2 changed files with 4 additions and 2 deletions
|
@ -185,7 +185,6 @@ class channel{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
readbottom(){
|
readbottom(){
|
||||||
console.log(this)
|
|
||||||
if(!this.hasunreads){
|
if(!this.hasunreads){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,10 @@ class localuser{
|
||||||
this.typing=[];
|
this.typing=[];
|
||||||
}
|
}
|
||||||
resolveGuildidFromChannelID(ID){
|
resolveGuildidFromChannelID(ID){
|
||||||
return this.guilds.find(guild => guild.channelids[ID]);
|
const resolve=this.guilds.find(guild => guild.channelids[ID])
|
||||||
|
resolve??={};
|
||||||
|
console.error("Failed to resolve "+ID);
|
||||||
|
return resolve;
|
||||||
}
|
}
|
||||||
updateChannel(JSON){
|
updateChannel(JSON){
|
||||||
this.guildids[JSON.guild_id].updateChannel(JSON);
|
this.guildids[JSON.guild_id].updateChannel(JSON);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue