Итак, я строю бот для обучения и практики, но я получаю: < /p>
raise PrivilegedIntentsRequired(exc.shard_id) from None
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.
< /code>
Я пробовал: < /p>
intents = discord.Intents.default()
intents.message_content = True
intents.members = True
< /code>
и < /p>
intents = discord.Intents.all()
< /code>
Но оба дают одинаковую ошибку. Намерение присутствия и участники сервера намерения включены на бот в портале Discord. Сначала я попробовал Google, и это дало мне All (), чтобы попробовать и попробовать инструменты ИИ, прежде чем приехать сюда, но они тоже ничего не могут предложить. вызывает неудачу, но все еще застрял в том, что делать дальше.
Подробнее здесь: https://stackoverflow.com/questions/796 ... ge-content
Discord ints.message_content ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение