Collectors not working
Hey !
So I have a command (in a different file) that open a modal and when the modal is submitted (in the index.js) I add a button to the reply message and want to do something when the user click the button and reuse modal informations. So I tried collectors but when the user click the button, nothing happen. But when the time is out," End "appear in the console
Here is my code : https://code.litarvan.com/jopubaza.js
8 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!interaction.user
, not interation.author
I already tried this and nothing happened
Add
fetchReply: true
to your reply option, and correct your filter as you were toldI would say combine the two suggestions above, there's not much else that looks like it would error the code.
Ok so I used an other method for my problem but I have a new one x)
I look for the basic message collector and copied the code in the guide but even with that, he don't collect my message !
https://code.litarvan.com/roxiwewe.typescript
If you aren't getting content, embeds or attachments of a message, make sure you have the
MessageContent
intent enabled in the Developer Portal and provide it to your client:
Thanks !