Discordjs v14 Collector not working

I just updated my app to v14 from v13. Everything works fine, except for the collector. The collector is setup the same way as the v13 way. I looked through the documentation and found no differences between v13 and v14. Am I missing something?
const filter = m => m.author.id === interaction.user.id && (m.content in allowedResponses || m.content.toLowerCase() === 'first' || m.content.toLowerCase() === 'last' || m.content.toLowerCase() === '.')

const collector = interaction.channel.createMessageCollector({filter, max: 1, time: 60000})
const filter = m => m.author.id === interaction.user.id && (m.content in allowedResponses || m.content.toLowerCase() === 'first' || m.content.toLowerCase() === 'last' || m.content.toLowerCase() === '.')

const collector = interaction.channel.createMessageCollector({filter, max: 1, time: 60000})
4 Replies
d.js docs
d.js docs2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
92bricks
92bricks2y ago
The code in the collector is no longer running.
collector.once('collect', async (message) => {
console.log(message)
collector.once('collect', async (message) => {
console.log(message)
Example above The log isn't running. Yes. The code above this works just fine
92bricks
92bricks2y ago
92bricks
92bricks2y ago
I have 2 collectors here. The button collector works perfectly still.
const client = new Client({ intents: [GatewayIntentBits.Guilds], partials: [Partials.Channel] });
const client = new Client({ intents: [GatewayIntentBits.Guilds], partials: [Partials.Channel] });
I'm not reading messages, am I 😦 I need to include an intent Which one? Gotcha. I think I found what I needed. Gonna test. Got it fixed. Thank you! Take care.