Answers for "how to do disconnect command on member in discord python"

0

how to do disconnect command on member in discord python

@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
Posted by: Guest on March-09-2021

Code answers related to "how to do disconnect command on member in discord python"

Python Answers by Framework

Browse Popular Code Answers by Language