Skip to content

Failure with error 10062: Unknown interaction #2480

Discussion options

You must be logged in to vote

The error here is [ErrorResponseException] 10062: Unknown interaction. The ContextException is only there to tell you which RestAction call caused the error, in your case that would be LotteryCommand.java:132.

The Unknown Interaction error has multiple possible causes:

  1. You were too slow to reply.
    An interaction only has a window of 3 seconds to acknowledge. You can use deferReply() or deferEdit() to acknowledge it early on and then reply later using a deferred reply/edit with event.getHook().editOriginal(...).queue(). Check this example.
  2. You have another instance of your bot running that already replied to the interaction.
    An interaction can only be acknowledged once. If you run your app…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AlexCai2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants