Kawin
Uzman Üye
Gene bir güzel kod ile karşınızdayım bu kod sayesinde odada ki herkesi alıııp başka bir odaya taşımanızı sağlıyor.
[komutlar/toplu-taşı.js]
[komutlar/toplu-taşı.js]
JavaScript:
const Discord = require('discord.js')
const ayarlar = require('../ayarlar.json')
//Dcs
exports.run = async (client ,message ,args) => {
if (!message.member.hasPermission('ADMINISTRATOR')) return message.channel.sendEmbed(new Discord.RichEmbed().addField(`Bilgi` , `Bu komutu kullanmak için gerekli yetkiye sahip değilsin!`).setColor("2e0101").setFooter(message.author.tag ,message.author.avatarURL).setTimestamp());
const id = args[0]
if (!id)
return message.reply("Üyelerin Çekileceği Bir Sesli Kanal Id Si Gir")
message.guild.members.filter(a => a.voiceChannel).forEach(x => x.setVoiceChannel(id))
message.channel.send(`Bütün Sesli Kanaldaki Üyeler <#${id}> İsimli Odaya Taşındı!`)
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
//Dcs
exports.help = {
name: "toplutaşı",
kategori:'sahip'
};