2023-06-25 02:12:02 ERROR discord.app_commands.tree Ignoring exception in command 'unban'
Traceback (most recent call last):
File "/home/container/otrobot.py", line 698, in unban
await interaction.guild.unban(member)
File "/home/container/.local/lib/python3.11/site-packages/discord/guild.py", line 3494, in unban
await self._state.http.unban(user.id, self.id, reason=reason)
^^^^^^^
AttributeError: 'str' object has no attribute 'id'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/container/.local/lib/python3.11/site-packages/discord/app_commands/commands.py", line 842, in _do_call
return await self._callback(interaction, **params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/otrobot.py", line 704, in unban
await interaction.followup.send(embed=embed_error)
File "/home/container/.local/lib/python3.11/site-packages/discord/webhook/async_.py", line 1800, in send
data = await adapter.execute_webhook(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/discord/webhook/async_.py", line 219, in request
raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10015): Unknown Webhook
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/container/.local/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/container/.local/lib/python3.11/site-packages/discord/app_commands/commands.py", line 867, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/discord/app_commands/commands.py", line 860, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'unban' raised an exception: NotFound: 404 Not Found (error code: 10015): Unknown Webhook```