text: const { Client, MessageEmbed } = require("discord.js");
  const { stripIndents } = require("common-tags");
  
  module.exports = {
      name: "report",
      aliases: ["report", "r", "inform"],
      category: "moderation",
      description: "Report a member",
      usage: "<mention | ID>",
      private: false,
      run: async (client, message, args) => {
          if (message.deletable) message.delete();
  
          let rMember = message.mentions.members.first() || message.guild.members.cache.get(args[0]);
  
          if (!rMember) {
              return message.reply("Couldn't find that person").then(msg => msg.delete({ timeout: 3000 }));
          }
          if (rMember.hasPermission("BAN_MEMBERS") || rMember.user.bot) {
              return message.reply("Can't report that member").then(msg => msg.delete({ timeout: 3000 }));
          }
          if (!args[1]) {
              return message.channel.send("Please provide a reason for the report!").then(msg => msg.delete({ timeout: 3000 }));
          }
          const reportsChannel = message.guild.channels.cache.find(c => c.name === "reports" && c.type == "text");
  
          if (reportsChannel) {
              return message.channel.send("I could not find a \`#reports\` channel").then(msg => msg.delete({ timeout: 3000 }));
          }
  
          const embed = new MessageEmbed()
              .setColor("#ff0000")
              .setTimestamp()
              .setFooter(message.guild.name, message.guild.iconURL())
              .setAuthor("Reported member", rMember.user.displayAvatarURL())
              .setDescription(stripIndents`**>> Member:** ${rMember} (${rMember.id})
              **>> Reported by:** ${message.member} (${message.member.id})
              **>> Reported in:** ${message.channel}
              **>> Reason:** ${args.slice(1).join(" ")}`);
  
          console.log(`found ${reportsChannel}`)
          return reportsChannel.send(embed);
  
      }
  }