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);
No description
36 Replies
d.js toolkit
d.js toolkit3mo ago
- 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 OP
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo063mo ago
the message is not empty, the bot should send an embed
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo063mo ago
sure, a sec
Robelo06
Robelo063mo ago
SourceBin
disconnect.js
Disconnect a Member from a VoiceChannel
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
NyR
NyR3mo ago
Show your index.js line 70
Robelo06
Robelo063mo ago
sure, a sec sure a sec I said what it contains
Robelo06
Robelo063mo ago
NyR
NyR3mo ago
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
Robelo06
Robelo063mo ago
No description
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo063mo ago
interaction.reply
NyR
NyR3mo ago
Can you send the full code? If that is indeed line 70 then the stack trace is incomplete
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo063mo ago
yep
NyR
NyR3mo ago
Await all your editReply(s) here to see which one is throwing the error
Robelo06
Robelo063mo ago
okay
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
NyR
NyR3mo ago
I meant in this code, but you get me
Robelo06
Robelo063mo ago
okay it returns a disconnect.js line in the stack trace, sending it
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo063mo ago
Updated File: https://sourceb.in/u7eTI2NHLE Error Message:
SourceBin
disconnect.js
Disconnect a Member from a VoiceChannel
No description
NyR
NyR3mo ago
embeds not embed
Robelo06
Robelo063mo ago
ahhh yeah
NyR
NyR3mo ago
Same with line 35
Robelo06
Robelo063mo ago
thank you both so much
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo063mo ago
I have a new question now, still related to this
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo063mo ago
which is the permission to disconnect members I use ModerateMembers but I'm not sure it's the correct one
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Robelo06
Robelo063mo ago
ah okay, thanks
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View