@bot.command()
async def move(ctx, channel : discord.VoiceChannel):
for members in ctx.author.voice_channel:
await members.move_to(channel)
I want the command to be used where the executor can go into a channel and use '.move (name of channel)
and then it will move all the members in that channel to the (name of channel)
. One of the errors I'm getting is that it's ignoring spaces, so if there's a space in the name of the voice channel, it will only include the word before the space. And also I get this: Command raised an exception: AttributeError: 'Member' object has no attribute 'voice_channel'
. Can somebody help me?