title: client.guilds coming up as 'undefined'
body: <p>Okay, so I'm writing a discord bot that outputs all the usernames in a guild (server).</p>
  
  <p>Here is the code I have so far.</p>
  
  <pre><code>var Discord = require('discord.io');
  var logger = require('winston');
  var auth = require('./auth.json');
  // Configure logger settings
  logger.remove(logger.transports.Console);
  logger.add(new logger.transports.Console, {
      colorize: true
  });
  logger.level = 'debug';
  // Initialize Discord client
  var client = new Discord.Client({
     token: auth.token,
     autorun: true
  });
  client.on('ready', function (evt) {
      logger.info('Connected');
      logger.info('Logged in as: ');
      logger.info(client.username + ' - (' + client.id + ')');
      logger.info(client.guilds);
  });
  client.on('message', function (user, userID, channelID, message, evt) {
      // Our client needs to know if it will execute a command
      // It will listen for messages that will start with `!`
      if (message.substring(0, 1) == '.') {
          var args = message.substring(1).split(' ');
          var cmd = args[0];
  
          args = args.splice(1);
          switch(cmd) {
              case 'members':
                  var memberList = [];
                  const guild = client.guilds.get("610719306678009856");
                  guild.members.forEach(member =&gt; memberList.push((member.user.username)));  
                  client.sendMessage({
                      to: channelID,
                      message: memberList, 
                  });
              break;
              // Just add any case commands if you want to..
           }
       }
  });
  </code></pre>
  
  <p>I was getting an error from <code>client.guilds.get</code> saying <code>TypeError: Cannot read property 'get' of undefined</code>.</p>
  
  <p>I then added the <code>logger.info(client.guilds)</code> to see if it would output, and on startup it outputs <code>{"message":"undefined","level":"info"}</code></p>
  
  <p>I've been checking the documentation, and I have 0 clue why this isn't working.</p>