daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Feb 14th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   //START OF TICKET OPENING SYSTEM
  2.   if (message.content.startsWith(config.prefix + "new")){
  3.     let member = message.guild.roles.find("name", "Member");
  4.     const user = message.author.username;
  5.     message.guild.createChannel(`${user}-ticket`, 'text');
  6.     const channel = member.guild.channels.find('name', `${user}-ticket`);
  7.     message.channel.overwritePermissions(message.author, {
  8.     SEND_MESSAGES: true
  9. })
  10.     console.log('A ticket has been recieved');
  11.     channel.send({embed: {
  12.     color: 0xff0000,
  13.     author: {
  14.       name: client.user.username,
  15.       icon_url: client.user.avatarURL
  16.     },
  17.     title: "RedArms",
  18.     url: "http://redarmsmc.com",
  19.     fields: [{
  20.         name: "Thank you",
  21.         value: `${user}, your ticket has been created!`
  22.       },
  23.     ],
  24.     timestamp: new Date(),
  25.     footer: {
  26.       text: "© RedArms"
  27.     }
  28.   }
  29. });
  30.   }
  31.   //END OF TICKET OPENING SYSTEM
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top