mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
fix(ReactionCollector): check for channel.threads (#7069)
This commit is contained in:
@@ -187,7 +187,7 @@ class ReactionCollector extends Collector {
|
|||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
_handleChannelDeletion(channel) {
|
_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');
|
this.stop('channelDelete');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user