![python](https://habrastorage.org/r/w120/webt/5a/de/0e/5ade0efe6f5d5276653463.png)
Python
2
Вклад в тег
@bot.command()
@commands.has_any_role( 757315805242458202)
async def clear(ctx, amount=None):
await ctx.channel.purge(limit=int(amount)+1)
await ctx.channel.send(':: Сообщения успешно удалены')
@bot.command()
@commands.has_permissions( administrator = True)
async def clear(ctx, amount=None):
await ctx.channel.purge(limit=int(amount)+1)
await ctx.channel.send(':: Сообщения успешно удалены')