text: const guildSystem = require("../models/guilds");
  module.exports = async (client, channel) => {
    if (channel.type === "dm") return;
    const msgDocument = await guildSystem
      .findOne({
        guildID: channel.guild.id,
      })
      .catch((err) => console.log(err));
    if (!msgDocument) {
      try {
        const dbMsg = await new guildSystem({
          guildID: message.guild.id,
          prefix: process.env.prefix,
          language: "en",
          role: false,
          kick: false,
          ban: false,
        });
        var dbMsgModel = await dbMsg.save();
      } catch (err) {
        console.log(err);
      }
    } else {
      dbMsgModel = msgDocument;
    }
    const { channelLogs } = dbMsgModel;
    const canal = client.channels.resolve(channelLogs);
    const logEmbed = new client.Discord.MessageEmbed()
      .setTitle("**「:x:」• Canal Removido**")
      .setDescription("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬")
      .setColor("RED")
      .addField("Tipo", "`" + channel.type + "`", true)
      .addField("Nombre", "`" + channel.name + "`", true)
      .addField("Creado", "`" + channel.createdAt.toDateString() + "`", true)
      .addField("ID", "`" + channel.id + "`", true)
      .setTimestamp()
      .setFooter(
        `•${channel.guild.name}•`,
        client.user.displayAvatarURL({ dynamic: true }),
        true
      );
    if (canal) return canal.send(logEmbed);
  };
  