Ошибка при написании команд на пайтоне
Простенький код:
@client.command( pass_context = True )
async def clear( ctx, amount = 1000 ):
await ctx.channel.purge( Limit = amount )
Ошибка:
Traceback (most recent call last):
File "C:\Users\Бублик\Desktop\Питончик\allax.py", line 29, in <module>
async def clear( ctx, amount = 1000 ):
File "C:\Users\Бублик\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\core.py", line 1228, in decorator
result = command(*args, **kwargs)(func)
File "C:\Users\Бублик\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\ext\commands\core.py", line 1389, in decorator
raise TypeError('Callback is already a command.')
TypeError: Callback is already a command.