Failure with error 10062: Unknown interaction #2480
-
This is my repository: LotteryCommand.java
|
Beta Was this translation helpful? Give feedback.
Answered by
MinnDevelopment
Jun 19, 2023
Replies: 1 comment
-
The error here is The
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AlexCai2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error here is
[ErrorResponseException] 10062: Unknown interaction
. TheContextException
is only there to tell you which RestAction call caused the error, in your case that would beLotteryCommand.java:132
.The
Unknown Interaction
error has multiple possible causes:An interaction only has a window of 3 seconds to acknowledge. You can use
deferReply()
ordeferEdit()
to acknowledge it early on and then reply later using a deferred reply/edit withevent.getHook().editOriginal(...).queue()
. Check this example.An interaction can only be acknowledged once. If you run your app…