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

Couldn't handle packet of type INTERACTION_CREATE in a "text in voice channel" scenario #1198

Open
journeyman88 opened this issue Dec 20, 2022 · 1 comment · Fixed by #1014
Labels
🐛 bug Something isn't working
Milestone

Comments

@journeyman88
Copy link

Javacord version

3.7.0

Steps to reproduce

  1. Register a global SlashCommand in the bot
  2. Open a VoiceChannel in Discord
  3. Open the TextChannel
  4. Invoke the SlashCommand

What is expected?

The command should return its result.

What is actually happening?

The command do not respond.

In the bot log the following log is found (I've removed the packet from the log (aside the version and type fields))
WARN org.javacord.core.util.gateway.PacketHandler - Couldn't handle packet of type INTERACTION_CREATE. Please contact the developer! (packet: {"version":1,"type":2, ...}) java.lang.AssertionError: null at java.util.Optional.orElseThrow(Optional.java:403) ~[?:?] at org.javacord.core.interaction.InteractionImpl.<init>(InteractionImpl.java:80) ~[javacord-core-3.7.0.jar:?] at org.javacord.core.interaction.ApplicationCommandInteractionImpl.<init>(ApplicationCommandInteractionImpl.java:25) ~[javacord-core-3.7.0.jar:?] at org.javacord.core.interaction.SlashCommandInteractionImpl.<init>(SlashCommandInteractionImpl.java:33) ~[javacord-core-3.7.0.jar:?] at org.javacord.core.util.handler.interaction.InteractionCreateHandler.handle(InteractionCreateHandler.java:86) ~[javacord-core-3.7.0.jar:?] at org.javacord.core.util.gateway.PacketHandler.lambda$handlePacket$0(PacketHandler.java:51) ~[javacord-core-3.7.0.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.lang.Thread.run(Thread.java:833) [?:?]

Any additional comments?

No response

@journeyman88 journeyman88 added the 🐛 bug Something isn't working label Dec 20, 2022
@Vampire
Copy link
Member

Vampire commented Dec 20, 2022

This will hopefully be fixed with #1014

@felldo felldo added this to the Next Version milestone Mar 16, 2023
@felldo felldo linked a pull request Mar 16, 2023 that will close this issue
2 tasks
@Bastian Bastian modified the milestones: Version 3.8.0, Next Version Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants