Fixed a Bug causing client to be unable to load
This commit is contained in:
@@ -185,7 +185,6 @@ class channel{
|
||||
return null;
|
||||
}
|
||||
readbottom(){
|
||||
console.log(this)
|
||||
if(!this.hasunreads){
|
||||
return;
|
||||
}
|
||||
|
@@ -30,7 +30,10 @@ class localuser{
|
||||
this.typing=[];
|
||||
}
|
||||
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){
|
||||
this.guildids[JSON.guild_id].updateChannel(JSON);
|
||||
|
Reference in New Issue
Block a user