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
d.js docs
d.js docs3y 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.
duck
duck3y ago
is this a message collector?
92bricks
92bricksOP3y ago
Yes, it is a message collector
duck
duck3y ago
then you were probably looking for m.author.id rather than m.user.id but yes you can filter your collectors however you want
92bricks
92bricksOP3y ago
m.author.id isn't good either because it'll only expect the text response of the user who made the command
duck
duck3y ago
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
92bricks
92bricksOP3y ago
I'd want to ignore all bots for sure
⸸⛧Stealth⛧⸸
No it wont
Want results from more Discord servers?
Add your server