Checking if a connection is already established.
Hey there, I was just wondering if I should be checking if the bot already has an established connection before running the below code:
I'm mainly curious to know if there is any performance issues by not checking first, or if adding checking would add performance issues. Just trying to optimize things with my bot :)
2 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.DJS v14.3.0 and @discordjs/voice v0.11.0