Advertisement
Alpha_Codes_Team

كود انشاء روم لوق

Jul 15th, 2020
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. client.on('guildCreate', async guild => {
  2. if(!guild.member(client.user).hasPermission("MANAGE_CHANNELS")) return;
  3. var logname = "log"; // اسم الروم
  4. var check_log = guild.channels.cache.find(chn => chn.name == logname);
  5. if(!check_log){
  6. await guild.channels.create(logname, {type: 'text' , permissionOverwrites: [
  7. {
  8. id: guild.id,
  9. deny: ['VIEW_CHANNEL'],
  10. },
  11. ]}).then(chan =>{
  12. console.log("=========================")
  13. console.log("Log Cahnnel created.")
  14. console.log("Server name : "+guild.name)
  15. console.log("Server id : "+guild.id)
  16. console.log("=========================")
  17. });
  18. }
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement