SHOW:
|
|
- or go back to the newest paste.
| 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 | } |