Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] Purge cog is not handling interactions properly, resulting in errors each time the command is ran #60

Open
mordertehmod opened this issue Aug 27, 2024 · 0 comments

Comments

@mordertehmod
Copy link

mordertehmod commented Aug 27, 2024

`[06:38:32] ERROR [red] HybridCommandError
╭────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────╮
│ /home/xrdpuser/redenv/lib/python3.11/site-packages/discord/app_commands/commands.py:857 in _do_call │
│ ❱ 857 return await self._callback(self.binding, interaction, **params) # │
│ type: ignore │
│ /home/xrdpuser/Desktop/Zaddy/cogs/CogManager/cogs/purge/core.py:531 in after │
│ ❱ 531 await ctx.send( │
│ /home/xrdpuser/redenv/lib/python3.11/site-packages/redbot/core/commands/context.py:91 in send │
│ ❱ 91 return await super().send(content=content, **kwargs) │
│ /home/xrdpuser/redenv/lib/python3.11/site-packages/discord/ext/commands/context.py:1077 in send │
│ ❱ 1077 await self.interaction.response.send_message(**kwargs) │
│ /home/xrdpuser/redenv/lib/python3.11/site-packages/discord/interactions.py:855 in send_message │
│ ❱ 855 await adapter.create_interaction_response( │
│ /home/xrdpuser/redenv/lib/python3.11/site-packages/discord/webhook/async
.py:221 in request │
│ ❱ 221 raise NotFound(response, data) │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯
NotFound: 404 Not Found (error code: 10062): Unknown interaction

The above exception was the direct cause of the following exception:

╭────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────╮
│ /home/xrdpuser/redenv/lib/python3.11/site-packages/discord/ext/commands/hybrid.py:444 in │
│ _invoke_with_namespace │
│ ❱ 444 value = await self._do_call(ctx, ctx.kwargs) # type: ignore │
│ /home/xrdpuser/redenv/lib/python3.11/site-packages/discord/app_commands/commands.py:876 in _do_call │
│ ❱ 876 raise CommandInvokeError(self, e) from e │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯
CommandInvokeError: Command 'after' raised an exception: NotFound: 404 Not Found (error code: 10062):
Unknown interaction

The above exception was the direct cause of the following exception:

╭────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────╮
│ /home/xrdpuser/redenv/lib/python3.11/site-packages/discord/ext/commands/hybrid.py:444 in │
│ _invoke_with_namespace │
│ ❱ 444 value = await self._do_call(ctx, ctx.kwargs) # type: ignore │
│ /home/xrdpuser/redenv/lib/python3.11/site-packages/discord/app_commands/commands.py:876 in _do_call │
│ ❱ 876 raise CommandInvokeError(self, e) from e │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯
HybridCommandError: Hybrid command raised an error: Command 'after' raised an exception: NotFound: 404 Not
Found (error code: 10062): Unknown interaction`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant