Problem with stats.js
So I'm trying to update this old stats command that I had. I'm trying to send a huge embed which requires me to defer the reply and I've attached a temporary fetching embed with it to, that is supposed to delete itself before the huge embed is sent. However, the embed is never sent and its stuck on thinking. I've tried using followUp, editReply, removing the fetching embed entirely, not using deferReply, channel.send and what not but still the embed isn't sent. I've try/catched nearly everything there is but console doesn't seem to detect any errors.
Here is my code: https://srcb.in/n6yyG3zZhd
5 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 OPMy node version is 20.11.0
My discord.js version is 14.14.1
If anyone has answers, feel free to ping me
does the temp message w/ embed get deleted?
If 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 moreSomeone suggested this yesterday and it worked for me