From 3846f0d97cf3ef81c578c0544e00dae3d1a5d994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Rom=C3=A1n?= Date: Tue, 7 Dec 2021 11:19:36 +0100 Subject: [PATCH] fix(ReactionCollector): check for channel.threads (#7069) --- src/structures/ReactionCollector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/ReactionCollector.js b/src/structures/ReactionCollector.js index c003272244c4..1b0b5f5badfd 100644 --- a/src/structures/ReactionCollector.js +++ b/src/structures/ReactionCollector.js @@ -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'); } }