title: How to restrict or grant access to Discord bots using Discord.js?
body: <p>I´ve recently made an economy bot that should make users buy access to other bots we have in the server (memes bots, music bots...). The idea is that if you don´t buy the access, you won´t be able to use the bot, but once you buy it, you will be able to use it. Is there any way I can restrict or grant access to Discord bots using Discord.js? Thanks!</p>
  
  <p>I haven´t tried anything yet since I have no idea of what to do.</p>
  
  <pre><code>if (message.content.toLowerCase().startsWith(prefix + "buy")) {
    if (args[0] == "bot") {
      let balance = eco.FetchBalance(message.author.id).then((result) =&gt; {
        if (result.balance &gt;= 1500) {
          eco.SubstractFromBalance(message.author.id, 1500);
  
          message.channel.send("Bought bot access");
  
          // Grant bot access
        }
      }
    }
  }
  </code></pre>