Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions src/webpage/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1700,12 +1700,17 @@ class Guild extends SnowFlake {
await fetch(this.info.api + "/channels/" + threadId, {
headers: this.headers,
})
).json()) as channeljson;
const channel = new Channel(channelJson, this);
this.localuser.channelids.set(channel.id, channel);
channel.resolveparent(this);
const par = this.localuser.channelids.get(channel.parent_id as string);
par?.createguildHTML();
).json());
if(channelJson.code == 200){
const channel = new Channel(channelJson as channeljson, this);
this.localuser.channelids.set(channel.id, channel);
channel.resolveparent(this);
const par = this.localuser.channelids.get(channel.parent_id as string);
par?.createguildHTML();
} else {
this.loadChannel();
}

}
this.localuser.goToChannel(threadId);
}
Expand Down