Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. message.guild.createChannel(`application-${args.slice(0).join("")}`, "text").then(((chan) => {
  2.  
  3. chan.setParent('670050400484851722');
  4. chan.overwritePermissions(message.guild.roles.find('name', '@everyone'), {
  5. 'VIEW_CHANNEL': false})
  6. chan.overwritePermissions(message.guild.roles.find('name', '❊Perms'), {
  7. 'VIEW_CHANNEL': true})
  8. chan.overwritePermissions((ign), {
  9. 'VIEW_CHANNEL': true})
  10.  
  11. // const msgCh = message.guild.channels.get(`application-${args.slice(0).join("")}`);
  12.  
  13. .then(((chan) => { message.channel.send('React below to start the application.')
  14. message.react('βœ…').then(() => message.react('❌'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement