Skip to content

Commit

Permalink
fix(ReactionCollector): check for channel.threads (#7069)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet committed Dec 7, 2021
1 parent b6b4570 commit 3846f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/ReactionCollector.js
Expand Up @@ -187,7 +187,7 @@ class ReactionCollector extends Collector {
* @returns {void}
*/
_handleChannelDeletion(channel) {
if (channel.id === this.message.channelId || channel.id === this.message.channel.parentId) {
if (channel.id === this.message.channelId || channel.threads?.cache.has(this.message.channelId)) {
this.stop('channelDelete');
}
}
Expand Down

0 comments on commit 3846f0d

Please sign in to comment.