1@bot.command()
2async def kick(ctx, user: discord.Member, *, reason="No reason provided"):
3 if not user.bot:
4 await user.kick(reason=reason)
5 await ctx.send(f"Successfully kicked {user}!")
6 else:
7 await ctx.send("You can't kick a bot!")