My role buttons interfere with everything

https://sourceb.in/darkdK0SWZ I am pretty sure its because of the lines 33 or so, but I can't really solve the problem. Essentially, all of my slash and button commands stop working when this runs.
6 Replies
d.js toolkit
d.js toolkit7d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Özgür Akça
Özgür Akça7d ago
14.15.3 and 22.3.0 for discord js and node respectively I think checking if the button is from this file with if (!roles.some((role) => role.id === interaction.customId)) { return; // Ignore interactions from other buttons } worked, I am not %100 sure but
treble/luna
treble/luna7d ago
dont nest your listeners and isButton is a function, not a property
Özgür Akça
Özgür Akça7d ago
sorry, I am kinda returning to coding so I am not %100 sure what you mean
treble/luna
treble/luna7d ago
you should know the difference between a function and a property a function has ()
Özgür Akça
Özgür Akça7d ago
no I know that oh yeah I fixed that later after posting the code