Fixed a Bug causing client to be unable to load

This commit is contained in:
MathMan05 2024-05-28 10:58:50 -05:00
parent 057a29a4f4
commit 8e89e9929b
2 changed files with 4 additions and 2 deletions

View file

@ -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);