E
E
Elvinchik2021-11-28 00:41:06
Python
Elvinchik, 2021-11-28 00:41:06

Error due to message.delete()?

Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\discord\client. py", line 343, in _run_event
await coro(*args, **kwargs)
File "C:\Users\Admin\Desktop\programming\shadowbot\main.py", line 46, in on_message
await message.delete()
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\discord\message.py", line 1023, in delete
await self._state. http.delete_message(self.channel.id, self.id)
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\discord\http.py", line 248, in request
raise Forbidden(r , data) discord.errors.Forbidden: 403 Forbidden ( error
code: 60003): Two factor is required for this operation

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2021-11-28
@shurshur

Server settings - Moderation - turn off the 2FA requirement.
They also write that you need to enable 2FA on the account of the creator of the bot, but this seems illogical.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question