title: Making Discord bot command case insensitive?
body: <p>I created a "roleinfo" command for my discord bot. I'm not sure how to make the role search case insensitive. See my code below:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const Discord = require("discord.js");
  
  module.exports.run = async (bot, message, args) =&gt; {
  
      //Message checks
      if (!args[0]) return message.channel.send("You must specify a role name");
  
      //Grab args and specify as rolename
      let roleName = `${args[0]}`
  
      //@rolename
      let roleMention = message.guild.roles.find(roles =&gt; roles.name === roleName)
  
      let rolefind = message.guild.roles.find(roles =&gt; roles.name === roleName)
      if (!rolefind) return message.channel.send(`Can't find role ${args[0]}`);
  
      //Filter members for role
      let membersWithRole = message.guild.members.filter(member =&gt; {
          return member.roles.find(roles =&gt; roles.name === roleName);
      }).map(member =&gt; {
          return member.user.username;
      })
  
      let serverembed = new Discord.RichEmbed()
          .setColor("#FFD700")
          .addField("Role name", roleMention)
          .addField("Number of users with the role", rolefind.members.size)
          .addField("Users with the role", membersWithRole.join("\n"))
  
  
      message.channel.send(serverembed);
  }
  
  module.exports.help = {
      name: "roleinfo",
      usage: "``prefix`` roleinfo or ``prefix`` roleinfo rolename",
      description: "Displays detailed role information",
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>I know I have to use .toLowerCase() or .toUpperCase() but i'm not sure how/where in this scenario. Could anyone help me out? Will be greatly appreciated. Thanks in advance!</p>