Системное администрирование

TypeError: BotBase.__init__() missing 1 required keyword-only argument: 'intents проблема в 8 строке

import discord from discord.ext import commands intents = discord.Intents.default() intents.message_content = True bot = commands.Bot (command_prefix='>', intents=intents) client=commands.Bot(command_prefix=".") #это восьмая строка
Лучший ответ
import discord from discord.ext import commands intents = discord.Intents.default() intents.message_content = True bot = commands.Bot (command_prefix='>', intents=intents) @bot.command() async def ping(ctx): await ctx.send('pong') bot.run ('token')
Остальные ответы