discord-py-ui / discord-ui

A discord.py extension for sending, receiving and handling ui interactions in discord
https://discord-ui.rtfd.io/
MIT License
36 stars 9 forks source link

Ninja mode gives 404 Not Found #90

Closed Mabi19 closed 2 years ago

Mabi19 commented 2 years ago

Responding to a select menu interaction using ninja mode gives a 404 Not Found, with error code 10062 (Unknown interaction). I tested with sending a message, and it works. (I'm receiving the event through a @commands.Cog.listener("on_menu_select") decorated function, since I couldn't find a way to use the other ways with cogs; actually, better support for cogs would be great). Sorry for not providing an example, I'm in a hurry right now.

kvsxxx commented 2 years ago

thank you for your report again, and I'm sorry for all of our issues.

The problem was, that if you used ninja_mode, it would respond quitely to the component but because I forgot to return after the response, it would try to respond to the interaction again with a normal method. Thank you very much

(I'll try add cog support)