@Askv1k

Проблемы с кодом disnake?

Сам код:
import disnake
from disnake.ext import commands

bot = commands.Bot(command_prefix=".", help_commands=None, intents=disnake.Intents.all())

@bot.event
async def on_ready():
print(f"Bot {bot.user} Готов к работе!")

bot.run("Токен")

Ошибка:
Traceback (most recent call last):
File "C:\Users\1\bot.py", line 4, in
bot = commands.Bot(command_prefix=".", help_commands=None, intents=disnake.Intents.all())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\1\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\bot_base.py", line 130, in __init__
super().__init__(**options)
File "C:\Users\1\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\interaction_bot_base.py", line 156, in __init__
super().__init__(**options)
File "C:\Users\1\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 83, in __init__
super().__init__(*args, **kwargs)
File "C:\Users\1\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\core.py", line 1174, in __init__
super().__init__(*args, **kwargs)
TypeError: Client.__init__() got an unexpected keyword argument 'help_commands'
  • Вопрос задан
  • 42 просмотра
Пригласить эксперта
Ответы на вопрос 1
fenrir1121
@fenrir1121 Куратор тега discord.py
Начни с документации
TypeError: Client.__init__() got an unexpected keyword argument 'help_commands'

Жмешь на commands.Bot, проваливаешься в описание и находишь что аргумент должен зваться help_command без s
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы