⚠️ Please verify that this bug has NOT been raised before.
- [X] I checked and didn't find similar issue
✏ Description
I have been trying to update an existing bot to Discord.js v14 for a while now. But I keep running into the same issue across 4 different bots that use DKRCommands; the event handling just does not work at all. I have the correct folder structure and naming scheme. I have an discord interactionCreate event listener for handling button presses and they never work. My code works perfectly fine if I put that listener in the index.js though. I would very much like to keep it out of the index.js to keep my work space clean and organized.
👟 Reproduction steps
I'm not so sure there are any steps to take. I can instead paste my code in a srcshare here and see what you think. srcshare link.
🔢 DKRCommands version
1.0.0-beta.4
💻 Operating system
Microsoft Windows
🔢 Node.js version
16.15.0
👀 Expected behavior
The client.on(interactionCreate)
event listener should work in its own file without needing to be in the index.js.
😥 Actual behavior
Bot comes online, console shows commands load, and the event "loads". But When I interact with the button the listener handles, it fails. No errors or anything. Bot doesn't crash. Just nothing from the event listener.
Everything above and outside of the module.exports
runs. But anything inside the module.exports
does not run at all.
📝 Relevant log output
No relevant log info to provide.
bug