const Discord = require("discord.js") exports.run = async (client, message, args) => { if (!message.member.voiceChannel) return message.channel.send("Ses Kanalına Girsene") let kullanici = message.mentions.members.first(); if (!kullanici.voiceChannel) return message.channel.send("Bu Kullanıcı Sesde Değil") if (!kullanici) return message.channel.send("Kime Gidicen Moruq") if (message.member.voiceChannel.id === kullanici.voiceChannel.id) return message.channel.send("Aynı Kanaldasınız Ya Salak") const filter = (reaction, user) => { return [':white_check_mark:', ':x:'].includes(reaction.emoji.id) && user.id === kullanici.id; }; let cc = new Discord.MessageEmbed() .setColor("BLUE") .setDescription(`${kullanici}, ${message.author} ${kullanici.voiceChannel.name} odasına gelmek istiyor. Kabul Etcenmi?\n Bass Açabilir Dikkatli ol xD`) .setFooter('Client Code Abisi') .set("") let mesaj = await message.channel.send(cc) await mesaj.react(":white_check_mark:") await mesaj.react(":x:") mesaj.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] }).then(collected => { const reaction = collected.first(); if (reaction.emoji.id === ':white_check_mark:') { let cc2 = new Discord.MessageEmbed() .setColor("GREEN") .setDescription(`${kullanici} Hege Karşim`) message.channel.send(cc2).then(msg => msg.delete(5000)); message.member.setVoiceChannel(kullanici.voiceChannel) } else { let clientcode3 = new Discord.MessageEmbed() .setColor("RED") .setDescription(`${kullanici} Tüh Adam Kabul Etmedi`) message.channel.send(clientcode3).then(msg => msg.delete(5000)); } }) } exports.conf = { enabled: true, aliases: ['git'], permLevel: 0 }; exports.help = { name: "git", description: "Etiketlediğiniz kullanıcıyı odaya çeker", usage: "git @kullanıcı" };