- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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!
#Bot can not login after build
4 messages · Page 1 of 1 (latest)
Looks fine, wdym bot cannot login?
What's the error you're receiving? Perhaps the relative path of the file changes (__dirname resolves to the location of the file, not the working directory).
const eventName = splitted.reverse()[0].replace(".ts", "");
event names are most likely being listened to, with the .js extension