mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(ReactionCollector): check for channel.threads (#7069)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user