title: I am having this " throw new RangeError('BITFIELD_INVALID', bit);" error; and i just can not find the solution
body: <p>I keep getting this error:</p>
  <pre><code>        throw new RangeError('BITFIELD_INVALID', bit);
      ^
  
  RangeError [BITFIELD_INVALID]: Invalid bitfield flag or number: undefined.
      at Function.resolve (I:\DiscordManagment\ReactionRolesAnimeHub\node_modules\←[4mdiscord.js←[24m\src\util\BitField.js:152:11)
      at I:\DiscordManagment\ReactionRolesAnimeHub\node_modules\←[4mdiscord.js←[24m\src\util\BitField.js:147:54
      at Array.map (&lt;anonymous&gt;)
      at Function.resolve (I:\DiscordManagment\ReactionRolesAnimeHub\node_modules\←[4mdiscord.js←[24m\src\util\BitField.js:147:40)
      at Client._validateOptions (I:\DiscordManagment\ReactionRolesAnimeHub\node_modules\←[4mdiscord.js←[24m\src\client\Client.js:546:33)
      at new Client (I:\DiscordManagment\ReactionRolesAnimeHub\node_modules\←[4mdiscord.js←[24m\src\client\Client.js:73:10)
      at Object.&lt;anonymous&gt; (I:\DiscordManagment\ReactionRolesAnimeHub\main.js:5:16)
  ←[90m    at Module._compile (internal/modules/cjs/loader.js:1072:14)←[39m
  ←[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)←[39m
  ←[90m    at Module.load (internal/modules/cjs/loader.js:937:32)←[39m {
    [←[32mSymbol(code)←[39m]: ←[32m'BITFIELD_INVALID'←[39m
  }
  _____
  </code></pre>
  <hr />
  <p>I have been searching for the messed up and outdated variable but i can not seem to find nor find a solution to this issue. Can someone help me please&gt; This bot's function is to auto add roles to someone when they react to an emoji below the message. For a self role system. I have been at this for a while trying to weed out the bugs. However this is a bug that i can not find the solution for in my code.</p>
  <hr />
  <pre><code>const Discord = require('discord.js');
  
  
  const { Client, Intents } = require('discord.js');
  const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.message, Intents.channel, Intents.reaction] });
  const prefix = '-';
  
  const fs = require('fs');
  
  client.commands = new Discord.Collection();
  
  const commandFiles = fs.readdirSync('./commands/').filter(file =&gt; file.endsWith('.js'));
  for (const file of commandFiles) {
      const command = require(`./commands/${file}`);
  
      client.commands.set(command.name, command);
  }
  
  
  client.on('ready', () =&gt; {
      console.log('bot is online!');
  });
  
  
  client.on('message', message =&gt; {
  
      if (!message.content.startsWith(prefix) || message.author.bot) return;
  
      const args = message.content.slice(prefix.length).split(/ +/);
      const command = args.shift().toLowerCase();
      if (command === 'ping') {
          client.commands.get('ping').excecute(message, args);
      }
      if (command === 'reactionrole') {
          client.commands.get('reactionrole').execute(message, args, Discord, client);
      }
  
  });
  
  client.login('');
  
  
  module.exports = {
      name: 'reactionrole',
      description: &quot;Sets up a reaction role message!&quot;,
      async execute(message, args, Discord, client) {
          const channel = '876575997338742786';
          const extrovertRole = message.guild.roles.cache.find(role =&gt; role.name === &quot;Extrovert&quot;);
          const introvertRole = message.guild.roles.cache.find(role =&gt; role.name === &quot;Introvert&quot;);
  
          const hotFaceEmoji = ':hot_face:';
          const coldFaceEmoji = ':cold_face:';
  
          let embed = new Discord.MessageEmbed()
              .setColor('#e42643')
              .setTitle('What kind of personality do you havc?')
              .setDescription('Choosing a personality allows people to know how to approach you/n/n'
                  + `${hotFaceEmoji} for Extrovert \n`
                  + `${coldFaceEmoji} for Introvert`);
  
          let messageEmbed = await message.channel.send(embed);
          messageEmbed.react(hotFaceEmoji);
          messageEmbed.react(coldFaceEmoji);
  
          client.on('messageReactionAdd', async (reaction, user) =&gt; {
              if (reaction.message.partial) await reaction.message.fetch();
              if (reaction.partial) await reaction.fetch();
              if (user.bot) return;
              if (!reaction.message.guild) return;
  
              if (reaction.message.channel.id == channel) {
                  if (reaction.emoji.name === hotFaceEmoji) {
                      await reaction.message.guild.members.cache.get(user.id).roles.add(extrovertRole);
                  }
                  if (reaction.emoji.name === coldFaceEmoji) {
                      await reaction.message.guild.members.cache.get(user.id).roles.add(introvertRole);
                  }
              } else {
                  return;
              }
  
          });
  
          client.on('messageReactionRemove', async (reaction, user) =&gt; {
  
              if (reaction.message.partial) await reaction.message.fetch();
              if (reaction.partial) await reaction.fetch();
              if (user.bot) return;
              if (!reaction.message.guild) return;
  
  
              if (reaction.message.channel.id == channel) {
                  if (reaction.emoji.name === hotFaceEmoji) {
                      await reaction.message.guild.members.cache.get(user.id).roles.remove(extrovertRole);
                  }
                  if (reaction.emoji.name === coldFaceEmoji) {
                      await reaction.message.guild.members.cache.get(user.id).roles.remove(introvertRole);
                  }
              } else {
                  return;
              }
          });
      }
  
  }   
  </code></pre>