Ошибка в Дискорд боте
Изучаю discord.py. При запуске кода появляется ошибка 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.
Сам код:
main.py:
import discord
from discord.ext import commands
from config import settings
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix = settings['prefix'], intents=intents)
@bot.command() # Не передаём аргумент pass_context, так как он был нужен в старых версиях.
async def hello(ctx): # Создаём функцию и передаём аргумент ctx.
author = ctx.message.author # Объявляем переменную author и записываем туда информацию об авторе.
await ctx.send(f'Hello, {author.mention}!') # Выводим сообщение с упоминанием автора, обращаясь к переменной author.
bot.run(settings['token']) # Обращаемся к словарю settings с ключом token, для получения токена
config.py:
settings = {
'token': 'токен',
'bot': 'имя',
'id': айди,
'prefix': '!'
}
P.S. так-то я понял из ошибки, что не хватает привилегий, но каких именно?