title: Fetch data containing a variable
body: <p>So my goal is to get the <code>uuid</code> from a Minecraft username via the Mojang api and then run it through the Hypixel Skyblock api. My problem is that I cant use the variable <code>${jsonsbid.id}</code> inside <code>JSON.stringify</code>. I'm quite new to coding and I cant seem to get it working.</p>
  <p>I'm using the Discord.js api to send out the JSON result as message.</p>
  <pre class="lang-js prettyprint-override"><code>import { key } from './config.json';
  
  client.on('message', message =&gt; {
    const prefix = '!skyblock ';
    const skyblock = message.content.slice(prefix.length);
    const fetch = require('node-fetch');
    if (!message.content.startsWith(prefix) || message.author.bot) return; {
      try {
        fetch(`https://api.mojang.com/users/profiles/minecraft/${skyblock}`)
          .then(response =&gt; response.json())
          .then(jsonsbid =&gt; fetch(`https://api.hypixel.net/Skyblock/profiles?uuid=${jsonsbid.id}&amp;key=${key}`))
          .then(responsesb =&gt; responsesb.json())
          .then(jsonsb =&gt; message.channel.send(`Coins: ${JSON.stringify(jsonsb.profiles[0].members.${jsonsbid.id}.coins_purse)}`)) //this is the line i need to get working
      } catch (err) {
        message.channel.send('A error occured')
      }
    };
  </code></pre>
  <p>Well I hope you can help me so I can learn more about coding and js.</p>