Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to move member to channel | discord.py

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)

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading