const bot = require('./../bot');
/**
 * This method should return the response directly to the channel
 * @param {*string array} params 
 * @param {*message} message
 */
async function command(params, message) {
    let user = bot.users.random();
    if(message.mentions.users.first())
    {
        user = message.mentions.users.first();
        let index = params.indexOf(message.mentions.users.first().toString());
        params.splice(index,1);
    }
    //let ava = bot.user.displayAvatarURL;
    //await bot.user.setAvatar(user.displayAvatarURL);
    await message.guild.me.setNickname(user.username);
    if(params.length<1)
        await message.channel.send("No argument provided",{code:'error'});
    else
        await message.channel.send(params.join(" "));
    await message.guild.me.setNickname(bot.user.username);
    //await bot.user.setAvatar(ava);
}
/**
 * description of the command
 */
const description = "impersonate's some random person";
/**
 * Define Exports
 */
module.exports = {
    execute: command,
    description: description
};

@@ -344,17 +344,14 @@
     
-let index
+params
  = p
@@ -360,91 +360,101 @@
 ams.
-indexOf(message.mentions.users.first().toString());%0A        params.splice(index,1);
+filter(function(p)%7B%0A            if(!p.includes(user.id))%0A                return p;%0A        %7D)
 %0A   

remove mention