Advertisement
NIR0-V

if the bot joind a new server he will create a room a send message inside

Jun 5th, 2021
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on('guildCreate', async(guild) => {
  2.     var channelName = "اسم الروم";
  3.     var Thechannel = await guild.channels.cache.find(c => c.name === channelName);
  4.     if (!Thechannel) await guild.channels.create(channelName, {
  5.         type: "text"
  6.     });
  7.     Thechannel.send("الرساله")
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement