How to move member to channel | discord.py

Question:

How to move member to a different channel without member: discord.Member, channel : discord.VoiceChannel arguments in a function if i have variables with channel id and member id in this function?

@commands.command()
async def msg(ctx):
    member = 848494088563327006
    channel = 430388650786947083
    await member.move_to(channel)
Asked By: FlamyIce

||

Answers:

I think you could use get_member, to get a member object by ID docs for get_member and get_channel to get the channel object by ID docs for get_channel. Then do the move_to command

I am not an expert with this but this would be an idea.

Answered By: Goldenfaeron
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.