Closed Hector6704 closed 3 years ago
The structures are exported out to dist/index.js and dist/index.ts
you can import structures with
import {StructureName} from 'discord-slash-commands'
Please provide me with the error you were getting so I can diagnose your problem
Hi, yeah actually my PR didn't fix it. When starting my bot with npm, it's saying that it cannot find the index.js file (in the slash-commands module), and that the main
script of your package.json is wrong
did you install via npm or clone the package
I'm using yarn
yarn installs from the npm repository.
can you show me what's inside node_modules/discord-slash-commands
?
Oh wait, does it only work for TS bots? Mine is JS
The dist folder contains compiled JS code. it works for JS bots.
Error when installing the module, the main script was wrong