title: discord.js client.user.setPresence() breaks bot
body: <p>My bot currently runs fine. I decided to add a 'playing ' status to it. This is the relevant code:</p>
  
  <pre><code>// Import the discord.js modules required
  const Discord = require('discord.js');
  
  // Create an instance of a Discord client
  const client = new Discord.Client();
  
  // Load config properties from 'config.json'
  const config = require("./config.json");
  const contest = config.contest;
  
  // Set bots status to playing 'contest' defined in 'config.json'
  client.user.setPresence({
    game:{
      name:contest
    },
    status:'online'
  });
  </code></pre>
  
  <p>In 'config.json':</p>
  
  <pre><code>{
    "contest": "Example Game"
  }
  </code></pre>
  
  <p>When I add this, the bot no longer works, and appears offline. Any ideas?</p>
  
  <p>EDIT:
  Source of the information:</p>
  
  <p><a href="https://discord.js.org/#/docs/main/stable/class/ClientUser?scrollTo=setPresence" rel="nofollow noreferrer">https://discord.js.org/#/docs/main/stable/class/ClientUser?scrollTo=setPresence</a></p>
  
  <p>In the example section:</p>
  
  <pre><code>// Set the client user's presence
  client.user.setPresence({ game: { name: 'with discord.js' }, status: 'idle' })
    .then(console.log)
    .catch(console.error);
  </code></pre>