Issue with role addition/removal
My bot always restarts in PM2 after adding/removing a role, if I run the bot normally through
node .
, the bot stops responding to messages for 3-4 seconds after adding/removing a role, but there are no errors in console. Code run after the add function will sometimes run, sometimes won't7 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!share the code
the
msg.channel.send
only runs like 30% of the time after adding the roletry adding await but as he said check logs
how do i do that?
thats after adding a role
ohhh shit wait right
i thought its not supposed to do that
hold on
how do i make it so it only restarts on ".js" file change