title: searching image from the discord bot
body: <p>I am using google-images and image-search-google npm package, but the outcome from the "usage" part of the package is either empty or 'error: can't send an empty message' I'm really confused </p>
  
  <p>I tried exactly from the page, but still the same result, I found a tutorial that alike, but the same outcome now I am really confused</p>
  
  <pre class="lang-js prettyprint-override"><code>const {RichEmbed, Attachment} = require('discord.js')
  const GoogleImage = require('image-search-google')
  const {saveGoogle, google_api} = require('../config.json')
  const google = new GoogleImage(saveGoogle, google_api);
  
  module.exports.run = async(bot, message, args) =&gt; {
          google.search("John Cena").then(result =&gt; {
            if(!result) return console.log('FAILED');
            console.log(result)
  
            const attachment = new Attachment(result.url);
            message.channel.send(attachment);
  
          }).catch(e =&gt; console.log(e))
  };
  
  </code></pre>
  
  <pre><code>(node:12184) UnhandledPromiseRejectionWarning: TypeError: The resource must be a string or Buffer.
      at ClientDataResolver.resolveFile (D:\Workspace\DiscordBot\node_modules\discord.js\src\client\ClientDataResolver.js:278:27)
      at Promise.all.options.files.map.file (D:\Workspace\DiscordBot\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:173:30)
      at Array.map (&lt;anonymous&gt;)
      at TextChannel.send (D:\Workspace\DiscordBot\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:172:40)
      at google.search.then.result (D:\Workspace\DiscordBot\commands\image.js:13:27)
      at process._tickCallback (internal/process/next_tick.js:68:7)
  </code></pre>
  
  <p>This is the outcome I get with 'Can't send an empty message' error</p>