📅  最后修改于: 2022-03-11 14:45:20.717000             🧑  作者: Mango
@bot.command()
async def kick(ctx, user: discord.Member, *, reason="No reason provided"):
if not user.bot:
await user.kick(reason=reason)
await ctx.send(f"Successfully kicked {user}!")
else:
await ctx.send("You can't kick a bot!")