Знаток (327), решён 2 года назад
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')
Остальные ответы
Все вопросы
Категории
Избранные