K
K
Killir Vanya2292021-06-24 07:52:44
Python
Killir Vanya229, 2021-06-24 07:52:44

Transferring a participant to another channel, how to do it via @bot.event?

My code:

@bot.event
async def on_message(message):
    guild = bot.get_guild(699607137227243550)
    channel = discord.utils.get(guild.voice_channels, id=785085589305294868)
    await bot.process_commands(member)
    if message.content.startswith(f'!move {member.mention}'):
        await member.move_to(channel)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question