vutfitdiscord / rubbergod

FITWIDE discord bot
GNU General Public License v3.0
55 stars 46 forks source link

Poll interaction not found? #781

Closed solumath closed 6 months ago

solumath commented 9 months ago

traceback on poll boolean when user clicked on yes button. Not sure why that happened

Traceback (most recent call last):

  File "/root/.local/lib/python3.12/site-packages/disnake/ui/view.py", line 381, in _scheduled_task
    allow = await self.interaction_check(interaction)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/rubbergod/buttons/poll.py", line 121, in interaction_check
    await inter.response.defer()

  File "/root/.local/lib/python3.12/site-packages/disnake/interactions/base.py", line 829, in defer
    await adapter.create_interaction_response(

  File "/root/.local/lib/python3.12/site-packages/disnake/webhook/async_.py", line 208, in request
    raise NotFound(response, data)

disnake.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction
solumath commented 6 months ago

Poll module removed