Interaction resulting in NotFoundError even when handled
Closed this issue · 4 comments
MazeXP commented
Description
When interaction are handled but a persistent entity is available for that interaction type then
an NotFoundError
is being returned.
Steps to Reproduce
- Run following example: https://github.com/MazeXP/Remora.Discord/tree/interaction-error/Samples/Interactivity
- Use slash command:
/interactive dropdown
- Select color from dropdown of interaction
Expected Behavior
No error to be returned as the interaction is handled by ColourDropdownEntity
.
Current Behavior
warn: Remora.Discord.Gateway.Services.ResponderDispatchService[0]
Error in gateway event responder.
One or more errors occurred.
[0]: NotFoundError { Message = No persistent data found for an interactive entity. Did you forget to initialize one when sending the original message? }
Library / Runtime Information
Latest master with .Net 6.0
AraHaan commented
Wait what, entities now broke?
MazeXP commented
It's an edge case that an error is reported when there actually is not one.
The interaction is still successful.
AraHaan commented
Yeah, in my bot it is always an success result.