Skip to content

Commit

Permalink
Add thread channel ID to guild map on thread update
Browse files Browse the repository at this point in the history
  • Loading branch information
bsian03 committed Sep 3, 2021
1 parent b861556 commit fbcbb25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/gateway/Shard.js
Original file line number Diff line number Diff line change
Expand Up @@ -2095,6 +2095,7 @@ class Shard extends EventEmitter {
if(!channel) {
const thread = Channel.from(packet.d, this.client);
this.emit("threadUpdate", this.client.guilds.get(packet.d.guild_id).threads.add(thread, this.client), null);
this.client.threadGuildMap[packet.d.id] = packet.d.guild_id;
break;
}
if(!(channel instanceof ThreadChannel)) {
Expand Down

0 comments on commit fbcbb25

Please sign in to comment.