text: const { MessageEmbed } = require('discord.js')
  
  module.exports.run = async (client, message, args, db) => {
   if (!args[0])
    return message.channel.send(
     new MessageEmbed()
      .setDescription(
       `**${message.author.username}**, pon una ID de un servidor!`
      )
      .setAuthor(message.author.tag, message.author.avatarURL())
      .setColor(client.bot.settings.color)
    )
  
   let sv = await client.guilds.cache.get(args[0])
   if (!sv)
    return message.channel.send(
     new MessageEmbed()
      .setDescription(
       `**${message.author.username}**, no estoy unido a ese servidor!`
      )
      .setAuthor(message.author.tag, message.author.avatarURL())
      .setColor(client.bot.settings.color)
    )
  
   if (db.blacklist[0].servers.includes(sv.id))
    return message.channel.send(
     new MessageEmbed()
      .setDescription(
       `**${message.author.username}**, no tengo permitido interactuar con ese servidor!`
      )
      .setAuthor(message.author.tag, message.author.avatarURL())
      .setColor(client.bot.settings.color)
    )
  
   let invite = await sv.channels.cache
    .filter((x) => x.type == 'text')
    .random(1)[0]
    .createInvite({ maxAge: 0, maxUses: 0 })
   let icon = sv.iconURL() == null ? message.author.avatarURL() : sv.iconURL()
   let embed = new MessageEmbed()
   embed.setAuthor(sv.name, icon)
   embed.setTitle(`Generando Invitación...`)
   embed.setURL(`https://discord.gg/${invite.code}`)
   embed.setDescription(
    `**${message.author.username}** la invitación se creo correctamente!`
   )
   embed.setFooter(`${client.prefix}info <ID>`, icon)
   embed.setColor(client.bot.settings.color)
   embed.setThumbnail(icon)
   await message.channel.send(embed)
   await message.reply(`discord.gg/${invite.code}`)
  }
  
  module.exports.help = {
   name: 'invite',
   aliases: ['inv'],
  }
  