По какой-то причине код отказыватется работать слеш команды

проблема в том, что я пытаюсь совместить коды через префикс и через '/', но выдает ошибку

TypeError: Client.__init__() takes 1 positional argument but 2 were given

Код:

import discord
from discord.ext import commands
from discord import app_commands 
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix='=', intents=intents)



class aclient(discord.Client):
    def __init__(self):
        super().__init__(intents)
        self.synced = False 

    async def on_ready(self):
        await self.wait_until_ready()
        if not self.synced: 
            await tree.sync(guild = discord.Object(id='id сервака'))
            self.synced = True
        print(f"We have logged in as {self.user}.")

client = aclient() 
tree = app_commands.CommandTree(client)

@tree.command(guild = discord.Object(id='id сервака'), name = 'help', description='ur help') 
async def slash2(interaction: discord.Interaction):
    await interaction.response.send_message(" я устал..", ephemeral = False)
bot.run('')

Полностью ошибка:

    Traceback (most recent call last):
      File "F:\test.py", line 27, in <module>
        client = aclient() 
      File "F:\test.py", line 17, in __init__
        super().__init__(intents)
    TypeError: Client.__init__() takes 1 positional argument but 2 were given

Ответы (0 шт):