Advertisement
NIR0-V

كود يوريك السيرفرات الي دخلها البوت و يوريك الأنفايت كود حجهم v12 حقوق 'Eren. #4444

Feb 13th, 2021
831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on("message", async(NotOurs) => {
  2.  
  3.   if (NotOurs.author.bot) return;
  4. let devs = ["ايديك"];
  5.   if (NotOurs.content.toLowerCase() === prefix + "links") {
  6.       if(!devs.includes(NotOurs.author.id)){
  7.     let embed = new Discord.MessageEmbed()
  8.     .setColor("RANDOM")
  9.     .setTitle("**ليس لديك صلاحيات**");
  10.     NotOurs.channel.send(embed).then( z => z.delete({timeout:3000}));
  11.  
  12.   }
  13.     client.guilds.cache.forEach(g => {
  14.  
  15.       let l = g.id;
  16.                 g.channels.cache.find(channel => channel.type === 'text' && channel.permissionsFor(g.me).has('SEND_MESSAGES'))
  17. //g.channels.cache.get(g.channels.first().id)
  18.         .createInvite({
  19.           maxUses: 100,
  20.           maxAge: 86400
  21.         })
  22.         .then(i =>
  23.           NotOurs.channel.send(`
  24.         https://discord.gg/${i.code}
  25.         [ ${g.owner} ]
  26.          
  27.        ` )
  28.         );
  29.     });
  30.   }
  31. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement