thorpedosg

Untitled

Aug 6th, 2018
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. } if (command === '!!zgłoś') {
  2. const hook = new Discord.WebhookClient('474598551914283009', 'dZAXiS6WByKV0KRKWp78SHAqEaHb3ZEzowInBT_o2CLY6NWcWLffzU8lfVjW59YILm4i');
  3. const defaultChannel = message.guild.channels.find(c=> message.member.hasPermission('SEND_MESSAGES'));
  4. let invite = await defaultChannel.createInvite();
  5. let z = args.join(' ');
  6. hook.send(z + `\n\n**${message.author.username}#${message.author.discriminator}**, **${message.guild.name}**, ${invite}`);
  7. }
Add Comment
Please, Sign In to add comment