@client.command()
@commands.has_permissions(administrator = True) or @commands.is_owner()
async def очисти(ctx, amount = 2, message = None):
await ctx.channel.purge(limit = amount)
@commands.has_permissions(administrator = True) or @commands.is_owner()
^
SyntaxError: invalid syntax
def check_if_it_is_me(ctx):
return ctx.message.author.id == 85309593344815104
@bot.command()
@commands.check(check_if_it_is_me)
async def only_for_me(ctx):
await ctx.send('I know you!')