The Channel Provided Must Be A Voice Channel. Error With Move_member
import discord from discord.ext import commands from discord.ext.commands import Bot import asyncio import time bot = commands.Bot(command_prefix='$') @bot.event async def on_rea
Solution 1:
The channel argument to move_member
must be a Channel
object, not just the channel id. This is noted in the documentation for move_member
You cannot pass in a
Object
instead of aChannel
object in this function.
@bot.command(pass_context=True)asyncdefmove(ctx):
destination = '414543063575429131'
user = '192361974053470208'await bot.move_member(ctx.message.server.get_member(user), bot.get_channel(destination))
# The get_member doesn't look to be strictly necessary, but it doesn't hurt# and improves readabilityprint("done")
Post a Comment for "The Channel Provided Must Be A Voice Channel. Error With Move_member"