title: r.body.find is not a function - snekfetch
body: <p>I have been trying to work with a game's API: the app fetches data from the API and shows it in the console but, when I try to show it in the Discord chat, it seems to fail to execute the <code>.find()</code> function.</p>
  
  <p>I have tried to remove the <code>.find()</code> function and directly displaying the body of the result.</p>
  
  <pre class="lang-js prettyprint-override"><code>const Discord = require('discord.js');
  const bot = new Discord.Client();
  const prefix = "!";
  const token = "...";
  
  const snekfetch = require("snekfetch");
  bot.on('ready', () =&gt; {
    console.log('This Bot Is online');
    bot.user.setActivity("Rainbow Six Siege", {
      type: "WATCHING"
    });
  });
  
  bot.on('message', message =&gt; {
    if (!message.content.startsWith(prefix)) return;
  
    const args = message.content.slice(prefix.length).split(' ');
    const command = args.shift().toLowerCase();
  
    if (command === 'server') {
      message.channel.send(`Server name: ${message.guild.name}\nTotal members: ${message.guild.memberCount}`);
    } else if (command === 'detail') {
      if (!args.length) {
        return message.channel.send(`Correct Syntax : !details platform username`);
      } else if (args[0] === message.content) {
  
      }
      let name = `${args[1]}`;
      let plat = `${args[0]}`;
      const api = `https://someweb/api/search.php?platform=${plat}&amp;search=${name}`;
      snekfetch.get(api).then(r =&gt; {
        let body = r.body;
        let entry = body.find(post =&gt; post.p_name === `${args[1]}`);
        if (!entry) return message.channel.send("error");
      });
    }
  });
  
  bot.login(token);
  </code></pre>
  
  <p>My Console.log</p>
  
  <pre><code>{ results:
     [ { p_id: 'f2d8bf92-472a-4381-8b53-41eb374b0ca6',
         p_name: 'TR3STO',
         p_level: 68,
         p_platform: 'uplay',
         p_user: 'f2d8bf92-472a-4381-8b53-41eb374b0ca6',
         p_currentmmr: 374,
         p_currentrank: 1,
         verified: 0,
         kd: 59 } ],
    totalresults: 1 }
  </code></pre>