📅  最后修改于: 2022-03-11 14:45:10.182000             🧑  作者: Mango
@client.command()
@commands.has_permissions(kick_members=True)
async def kick(ctx, member: discord.Member, *, reason=None):
if reason==None:
reason=" no reason provided"
await ctx.guild.kick(member)
await ctx.send(f'User {member.mention} has been kicked for {reason}')