using python im tring to create a bot thta moves a user from one voice channel to another
@client.command(pass_context = True)
async def asw(ctx, member: discord.Member):
channels = 1062106353230950430
await member.move_to(channel=channels)
In discord.Member.move_to the parameter channel
requires the channel Object not the id. You can get it usingdiscord.Guild.get_channel.
The code will be:
@client.command(pass_context = True)
async def asw(ctx, member: discord.Member):
channels = ctx.guild.get_channel(1062106353230950430)
await member.move_to(channel=channels)