I've been trying to create a discord bot with Python. One of the commands was suppose to remove of the user's roles and add a specific one. And then if they were on a voice channel send them to another specific voice channel. I tried the following code:
@client.command()
async def prisioner(member:discord.member):
role=await guild.get_role(702269742014005248)
channel=await guild.get_channel(690488036781195294)
await client.add_roles(member, role)
if member.activity!=None:
await move_to(channel)
It's not working and doesn't show any errors on the IDLE. Can someone help?