title: How to "globally" blacklist a user from using my discord bot?
body: <p><strong>[EDIT] This has been fixed!</strong></p>
  <p>I just needed to use <code>client.users.cache.get(args[0])</code></p>
  <hr />
  <p>In itself, it works, except the part where I can just send a user ID, which then blacklists the user.
  As long as the member is in the server where the command is ran, it works. Coded in DJS and Mongoose</p>
  <pre><code>const mongoose = require(&quot;mongoose&quot;)
  
  module.exports = {
      name: &quot;blacklist&quot;,
      aliases: [&quot;b&quot;, &quot;block&quot;],
      cooldown: 5000,
      description: &quot;Blocks a user from using Hexagon!&quot;,
      devOnly: true,
      category: &quot;Developer&quot;,
      usage: &quot;blacklist &lt;user&gt; [reason]&quot;,
  
      async run(client, message, args) {
          if(!args[0]) return message.reply('`[❌]` Incorrect Syntax: Missing Argument')
  
          const mentionedUser = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || client.users.cache.fetch(args[0]);
          if(!mentionedUser) return message.reply('`[❌]` Incorrect Syntax: Provided User does not exist!')
  
          let reason = args.slice(1).join(&quot; &quot;)
          if(!reason) reason = &quot;Reason not specified.&quot;
  
          let profile = blacklistedUsers.findOne({userID: mentionedUser.user.id})
          
          if(profile) return message.reply('`[❌]` Error: Mentioned User is already blacklisted!')
  
          profile = await new blacklistedUsers({
              userID: mentionedUser.user.id,
              reason
          }).save();
          message.channel.send(`\`❌\` ${mentionedUser.user.tag} was blacklisted!`)
      }
  }```
  
  I just want to be able to run &quot;blacklist &lt;userID&gt; [reason]&quot; with the userID being an ID that is not a server member, but rather a user in the bot's cache.
  </code></pre>