-
Notifications
You must be signed in to change notification settings - Fork 19
Description
I get this error message each time the bot runs a requests towards the Discord server.
I've kicked the bot after migrating from Invitarr, set OAuth URL generator settings to use the bot and application.commands options and set the bot permissions to Administrator.
[2022-11-21 14:52:51] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'remove'
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/discord/app_commands/commands.py", line 850, in _do_call
return await self.callback(self.binding, interaction, **params) # type: ignore
File "/app/app/bot/cogs/app.py", line 374, in plexremove
await self.removefromplex(email, interaction.response)
File "/app/app/bot/cogs/app.py", line 223, in removefromplex
await embederror(response, 'There was an error removing this email address. Check logs.')
File "/app/app/bot/helper/message.py", line 6, in embederror
await send_embed(recipient, embed, ephemeral)
File "/app/app/bot/helper/message.py", line 28, in send_embed
await recipient.send_message(embed=embed, ephemeral = ephemeral)
File "/usr/local/lib/python3.9/site-packages/discord/interactions.py", line 718, in send_message
await adapter.create_interaction_response(
File "/usr/local/lib/python3.9/site-packages/discord/webhook/async.py", line 221, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 400 Bad Request (error code: 40060): Interaction has already been acknowledged.The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/discord/app_commands/tree.py", line 1240, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/usr/local/lib/python3.9/site-packages/discord/app_commands/commands.py", line 876, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
File "/usr/local/lib/python3.9/site-packages/discord/app_commands/commands.py", line 869, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'remove' raised an exception: HTTPException: 400 Bad Request (error code: 40060): Interaction has already been acknowledged.