[discord-rpc] Prevent multiple listeners
guys I have a question
and inside updateRpc I have
client.login using client id, setactivity function and etc, how to do so it does not create multiple listeners except only one?
3 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!I tried
still getting
Browsing
1
Playing
2
Browsing
3
multiple listeners
u could use EventEmitter#once()