Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearing voice channel status returns internal server error #2600

Closed
2 tasks done
JustRed23 opened this issue Jan 5, 2024 · 0 comments · Fixed by #2601
Closed
2 tasks done

Clearing voice channel status returns internal server error #2600

JustRed23 opened this issue Jan 5, 2024 · 0 comments · Fixed by #2601
Labels

Comments

@JustRed23
Copy link

JustRed23 commented Jan 5, 2024

General Troubleshooting

  • I have checked for similar issues on the Issue-tracker.
  • I have checked for PRs that might already address this issue.

Version of JDA

5.0.0-beta.19

Expected Behaviour

Clear the voice channel status without any problem

Code Example for Reproduction Steps

//first you need to be in a voice channel and have the bot join you
slashcommandevent.getGuild().getAudioManager().openAudioConnection(slashcommandevent.getMember().getVoiceState().getChannel());

//then you need to clear the status
slashcommandevent.getGuild().getAudioManager().getConnectedChannel().asVoiceChannel().modifyStatus("").queue();

Code for JDABuilder or DefaultShardManagerBuilder used

JDA instance = JDABuilder.createDefault(TOKEN)
                .enableIntents(GatewayIntent.MESSAGE_CONTENT)
                .setActivity(Activity.playing("with cats"))
                .setStatus(OnlineStatus.IDLE)
                .addEventListeners(this)
                .build().awaitReady();

Exception or Error

ERROR  RestAction queue returned failure: [ErrorResponseException] 0: 500: Internal Server Error
net.dv8tion.jda.api.exceptions.ContextException: null
	at net.dv8tion.jda.api.exceptions.ContextException.here(ContextException.java:54)
	at net.dv8tion.jda.api.requests.Request.<init>(Request.java:77)
	at net.dv8tion.jda.internal.requests.RestActionImpl.queue(RestActionImpl.java:197)
	at net.dv8tion.jda.api.requests.RestAction.queue(RestAction.java:572)
	at net.dv8tion.jda.api.requests.RestAction.queue(RestAction.java:538)
	at qy.lambda$main$0(qy.java:29)
	at dev.JustRed23.jdautils.event.EventWatcher.onEvent(EventWatcher.java:79)
	at dev.JustRed23.jdautils.event.WatcherManager.lambda$onCommandEvent$13(WatcherManager.java:80)
	at java.base/java.util.Optional.ifPresent(Optional.java:178)
	at dev.JustRed23.jdautils.event.WatcherManager.onCommandEvent(WatcherManager.java:80)
	at dev.JustRed23.jdautils.InternalEventListener.onSlashCommandInteraction(InternalEventListener.java:142)
	at net.dv8tion.jda.api.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:447)
	at net.dv8tion.jda.api.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:96)
	at net.dv8tion.jda.internal.hooks.EventManagerProxy.handleInternally(EventManagerProxy.java:88)
	at net.dv8tion.jda.internal.hooks.EventManagerProxy.handle(EventManagerProxy.java:70)
	at net.dv8tion.jda.internal.JDAImpl.handleEvent(JDAImpl.java:177)
	at net.dv8tion.jda.internal.handle.InteractionCreateHandler.handleCommand(InteractionCreateHandler.java:112)
	at net.dv8tion.jda.internal.handle.InteractionCreateHandler.handleInternally(InteractionCreateHandler.java:83)
	at net.dv8tion.jda.internal.handle.SocketHandler.handle(SocketHandler.java:39)
	at net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(WebSocketClient.java:1015)
	at net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(WebSocketClient.java:901)
	at net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(WebSocketClient.java:879)
	at net.dv8tion.jda.internal.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:1054)
	at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:385)
	at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:276)
	at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:996)
	at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:755)
	at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)
	at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)
	at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants