1@bot.command()
2@has_permissions(kick_members=True)
3async def kick(self, ctx, Member: discord.Member):
4 await bot.kick(Member)
5
6@kick.error
7async def kick_error(error, ctx):
8 if isinstance(error, MissingPermissions):
9 await ctx.send("You don't have permission to do that!")