Skip to content

Commit

Permalink
Fix getChannel using channels prop when getting thread channel
Browse files Browse the repository at this point in the history
  • Loading branch information
bsian03 committed Aug 17, 2021
1 parent 7678cde commit 3d57bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,7 @@ class Client extends EventEmitter {
return this.guilds.get(this.channelGuildMap[channelID]).channels.get(channelID);
}
if(this.threadGuildMap[channelID] && this.guilds.get(this.threadGuildMap[channelID])) {
return this.guilds.get(this.threadGuildMap[channelID]).channels.get(channelID);
return this.guilds.get(this.threadGuildMap[channelID]).threads.get(channelID);
}
return this.privateChannels.get(channelID) || this.groupChannels.get(channelID);
}
Expand Down

0 comments on commit 3d57bef

Please sign in to comment.