Unknown Issue with some Commands
Hello, I have an issue with some commands, they cause the error in the screenshot. only a few new commands are affected.
The index.js line they refer to contains
await command.execute(interaction);
36 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 OPUnknown User•8mo ago
Message Not Public
Sign In & Join Server To View
the message is not empty, the bot should send an embed
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
sure, a sec
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Show your index.js line 70
sure, a sec
sure a sec
I said what it contains
Huh? The errors says you are trying to edit a message at line 70 of your index.js, so show that! I don't see how seeing other working commands will help here, do what i said
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
interaction.reply
Can you send the full code? If that is indeed line 70 then the stack trace is incomplete
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
yep
Await all your editReply(s) here to see which one is throwing the error
okay
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
I meant in this code, but you get me
okay it returns a disconnect.js line in the stack trace, sending it
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
embeds
not embed
ahhh
yeah
Same with line 35
thank you both so much
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
I have a new question now, still related to this
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
which is the permission to disconnect members
I use ModerateMembers
but I'm not sure it's the correct one
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
ah okay, thanks
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View