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