您好打擾,我是先在測試伺服器,測試了功能正常之後用remove將她刪除並回到我的主要伺服器進行設置,但是在主伺服器/add之後,除了DC顯示"該申請未受到回應",在console的地方也跳了報錯,再麻煩了打擾不好意思
報錯訊息如下:
Task exception was never retrieved
future: <Task finished name='CommandTree-invoker' coro=<CommandTree._from_interaction..wrapper() done, defined at /home/container/.local/lib/python3.12/site-packages/discord/app_commands/tree.py:1087> exception=NotFound('404 Not Found (error code: 10062): Unknown interaction')>
Traceback (most recent call last):
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/commands.py", line 827, in _do_call
return await self.callback(self.binding, interaction, **params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/cogs/notification.py", line 63, in notifier
await itn.response.defer(ephemeral=True)
File "/home/container/.local/lib/python3.12/site-packages/discord/interactions.py", line 661, in defer
await adapter.create_interaction_response(
File "/home/container/.local/lib/python3.12/site-packages/discord/webhook/async.py", line 219, in request
raise NotFound(response, data)
discord.errors.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):
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/commands.py", line 853, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/commands.py", line 846, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'notifier' raised an exception: NotFound: 404 Not Found (error code: 10062): Unknown interaction
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1089, in wrapper
await self._call(interaction)
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1252, in call
await self.on_error(interaction, e)
File "/home/container/bot.py", line 120, in on_tree_error
await itn.response.send_message(error, ephemeral=True)
File "/home/container/.local/lib/python3.12/site-packages/discord/interactions.py", line 801, in send_message
await adapter.create_interaction_response(
File "/home/container/.local/lib/python3.12/site-packages/discord/webhook/async.py", line 219, in request
raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction
您好打擾,我是先在測試伺服器,測試了功能正常之後用remove將她刪除並回到我的主要伺服器進行設置,但是在主伺服器/add之後,除了DC顯示"該申請未受到回應",在console的地方也跳了報錯,再麻煩了打擾不好意思
報錯訊息如下:
Task exception was never retrieved
future: <Task finished name='CommandTree-invoker' coro=<CommandTree._from_interaction..wrapper() done, defined at /home/container/.local/lib/python3.12/site-packages/discord/app_commands/tree.py:1087> exception=NotFound('404 Not Found (error code: 10062): Unknown interaction')>
Traceback (most recent call last):
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/commands.py", line 827, in _do_call
return await self.callback(self.binding, interaction, **params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/cogs/notification.py", line 63, in notifier
await itn.response.defer(ephemeral=True)
File "/home/container/.local/lib/python3.12/site-packages/discord/interactions.py", line 661, in defer
await adapter.create_interaction_response(
File "/home/container/.local/lib/python3.12/site-packages/discord/webhook/async.py", line 219, in request
raise NotFound(response, data)
discord.errors.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):
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/commands.py", line 853, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/commands.py", line 846, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'notifier' raised an exception: NotFound: 404 Not Found (error code: 10062): Unknown interaction
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1089, in wrapper
await self._call(interaction)
File "/home/container/.local/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1252, in call
await self.on_error(interaction, e)
File "/home/container/bot.py", line 120, in on_tree_error
await itn.response.send_message(error, ephemeral=True)
File "/home/container/.local/lib/python3.12/site-packages/discord/interactions.py", line 801, in send_message
await adapter.create_interaction_response(
File "/home/container/.local/lib/python3.12/site-packages/discord/webhook/async.py", line 219, in request
raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction