text: const Discord = require("discord.js");
  const errors = require("../util/errors.js");
  const settings = require("../config.js")
  
  module.exports.run = async (bot, message, args) => {
    try {
  
    if (!message.member.hasPermission("MANAGE_ROLES")) return errors.noPerms(message, "MANAGE_ROLES");
    if(args[0] == "515266261275312"){
      message.reply("9109509214251244");
      return;
    }
    let rMember = message.guild.member(message.mentions.users.first()) || message.guild.members.get(args[0]);
    if(!rMember) return message.reply("Couldn't find that user.");
    let role = args.join(" ").slice(22);
    if(!role) return message.reply("Specify a role!");
    let gRole = message.guild.roles.find(`name`, role);
    if(!gRole) return message.reply("Couldn't find that role.");
  
    if(!rMember.roles.has(gRole.id)) return message.reply("They don't have that role.");
    await(rMember.removeRole(gRole.id));
  
    try{
      await rMember.send(`We taken out the ${gRole.name} role.`)
    }catch(e){
      message.channel.send(`RIP to <@${rMember.id}>, We removed ${gRole.name} from them. We tried to DM them, but their DMs are locked.`)
    }
      } catch(err) {
        const errorlogs = bot.channels.get('464424869497536512')
        message.channel.send(`Whoops, We got a error right now! This error has been reported to Support center!`)
        errorlogs.send(`Error on removerole commands!\n\nError:\n\n ${err}`)
      }
  };
  
  exports.conf = {
    enabled: true,
    guildOnly: true,
    aliases: [],
    permLevel: "Bot Owners"
  };
  
  exports.help = {
    name: 'removerole',
    category: "Mod",
    description: 'remove role to mentioned user.',
    usage: 'removerole [mention] [role]'
  };