Collector Filter
Is it possible to let filter account for all discord user responses besides the bot itself?
Current filter - const filter = m => m.user.id === interaction.user.id && m.content.length > 2;
8 Replies
• 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.is this a message collector?
Yes, it is a message collector
then you were probably looking for
m.author.id
rather than m.user.id
but yes you can filter your collectors however you wantm.author.id isn't good either because it'll only expect the text response of the user who made the command
that's because you're comparing it with
interaction.user.id
my point is that <Message>.user
doesn't exist
you're probably looking to compare m.author.id
with m.client.user.id
or even consider just ignoring bots altogether by checking m.author.bot
I'd want to ignore all bots for sure
No it wont