how to do disconnect command on member in discord python

Solutions on MaxInterview for how to do disconnect command on member in discord python by the best coders in the world

showing results for - "how to do disconnect command on member in discord python"
Amina
20 Jul 2017
1@client.command
2async def leave(ctx, member : discord.Member):
3    await discord.Member.disconnect()
4
5
6
7 if msg.startswith("$kick."):
8        users = message.guild.members
9        count = 6
10        name = ""
11        while count < len(message.content):
12            name = name + str(message.content[count])
13            count = count + 1
14        #till here we just got the name
15        x = 0
16        while x > id.member_count:
17            if name == users[x]:
18                leave('was kicked',user[x])
19                break
20