Trying to relocate command
I'd like to move this command (starting at srvbot.on) out of the index file and into it's own command but when I move it out it fails to respond. Can't seem to figure out what it's missing.
Im trying to put it in the commands directory:
SERVERBOT
>data
>node_modules
>src
>classes
>commands
>data
>events
>handlers
>utils
>changelogs.js
>config.json
>deploy-commands.js
>register-commands.js
.env
index.html
package-lock.json
package.json
4 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!SourceBin
index.js
I keep receiving the following error:
The command at C:\Users\Valued Customer\OneDrive\Documents\Discord\ServerBot\src\commands\status.js is missing a required "data" or "execute" property.