Has the end() method been removed from InteractionCollector?

As the title says, I am getting an error saying collector.end() is not a function when running collector.end() my collector declaration:
const collector = message.channel.createMessageComponentCollector({
time: 60000,
});
const collector = message.channel.createMessageComponentCollector({
time: 60000,
});
1 Reply
yibuh
yibuhOP3y ago
collector.on('collect', async i => {
if (i.user.id !== interaction.user.id) {
return i.reply({
content: `¡Este panel no te pertenece!.`,
ephemeral: true,
});
}
collector.end();
}
collector.on('collect', async i => {
if (i.user.id !== interaction.user.id) {
return i.reply({
content: `¡Este panel no te pertenece!.`,
ephemeral: true,
});
}
collector.end();
}
Nevermind I am dumb
Want results from more Discord servers?
Add your server