7 Replies
- 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!
- ✅
Marked as resolved by OPAnybody help
#how-to-get-help what is not working? send errors if any,
The error is not showing on my console when I call this command it did not taking the channel and role from the text message
also you should be using
RoleSelectMenuBuilder
instead of StringSelectMenu you use for roles, that is exactly why role select exists, also its better if you use UserSelectMenu
and ChannelSelectMenu
for getting the users and channels, way better
then follow my advice, use select menus for thatIf you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn moreThank you