Java Call Discord bot
Good day. I have a bot for calling within Discord, written in Java. but there is a problem with it. after entering the voice channel (which is set as the default, and the bot always sits in it, even after launch), the bot begins to play pranks. every 7-8 seconds it leaves the channel and enters it again. and so on ad infinitum.
it’s a closed cycle. I suspect that the problem is with the channel entry command. I will attach it below. But no matter how much I tried to comment on parts when or make changes, the bot still continued the closed cycle. There is another file that manipulates voice connections – DiscordManager. I will also attach it below.