📌  相关文章
📜  如何在discord python代码示例中对成员执行断开连接命令

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

代码示例1
@client.command
async def leave(ctx, member : discord.Member):
    await discord.Member.disconnect()



 if msg.startswith("$kick."):
        users = message.guild.members
        count = 6
        name = ""
        while count < len(message.content):
            name = name + str(message.content[count])
            count = count + 1
        #till here we just got the name
        x = 0
        while x > id.member_count:
            if name == users[x]:
                leave('was kicked',user[x])
                break