awaitMessages not returning an output

const questionFilter = (m:Message) => {
return m.author.id == interaction.user.id;
}

channel.send( MessageReply.question(questions[question]) );

return await channel.awaitMessages({
filter: questionFilter,
max: 1,
time: 60000,
errors: ['time']
});
const questionFilter = (m:Message) => {
return m.author.id == interaction.user.id;
}

channel.send( MessageReply.question(questions[question]) );

return await channel.awaitMessages({
filter: questionFilter,
max: 1,
time: 60000,
errors: ['time']
});
4 Replies
d.js toolkit
d.js toolkit2y 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.
oxi
oxiOP2y ago
Any idea why this isn't returning an output? it seems as if the filter isn't running correctly as nothing returns until the time expires, however I can't seem to find the issue with the filter. Djs: [email protected] Node: v16.10.0
chewie
chewie2y ago
What are your intents
oxi
oxiOP2y ago
yeah, ill just pretend ive not spent an hour reworking it and looking at guides and stuff thinking ive done something wrong smh completely forgot about intents - thanks @thehairy
Want results from more Discord servers?
Add your server