I’m trying to find a way to move all members which are in a specific vc to the vc which the sender of the command is in. The command should be -warp. This is what i have so far:
if (!message.member?.permissions.has('MOVE_MEMBERS')) return;
const member = message.mentions.members?.first();
if (!member) return message.reply("Error: Didn't specify member.");
if (!member.voice.channel) return message.reply("Error: Mentioned member is not in a Voice Channel.");
if (!message.member.voice.channel) return message.reply("Error: Executor of command is not in a Voice Channel.");
member.voice.setChannel(message.member.voice.channel)
message.reply('Success: Moved member.')
It works but i can only move one user at the time and from every vc. I want everyone to be able to move others but only from a specific vc.
Thanks for your help!