Channel Lock -Befehl in diskord.py

#lock command
@bot.command(help=" Use this command to lock a channel")
@commands.has_permissions(manage_channels=True)
async def lock(ctx):
    await ctx.channel.set_permissions(ctx.guild.default_role,send_messages=False)
    await ctx.send('**<:vf:947194381172084767> Channel has been locked**')
    await ctx.channel.purge(limit=2)
Hunter 87