📜  python如何编码discord bot kick成员 - Python代码示例

📅  最后修改于: 2022-03-11 14:47:08.794000             🧑  作者: Mango

代码示例1
@bot.command()
async def kick(ctx, member: discord.Member, *, reason=None):
    await member.kick(reason=reason)
    await ctx.send(f'User {member} has been kicked from the server.')