Im a bit new to js coding, so idk how to call functions at index
So, i want to make at different files (for not having all the coding on the index.js) the line of commands like "client.on()" and saving them on a folder, is there any way to make it?
12 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.if you don't know what i actually mean tag me and i explain the problem more at detail
its on the top
You'd like to call a function from one file in the index?
I'm on mobile
I'd have to download the file
oh
ok
You can explain to me though
seems like you're looking to make an event handler @dhymbot
i want this event doing something but outside from the index.js
i think i already have one
im going to watch it
thnx