title: How to change the status of a Discord.js bot?
body: <p>I want to change the status of my Discord bot. I tried the one below, but it didn't work.</p>
  <pre class="lang-js prettyprint-override"><code>const { Client, MessageAttachment } = require('discord.js');
  
  const client = new Client();
  
  client.once('ready', () =&gt; {
   console.log('Status:Ready');
   client.user.setPresence({
    game: {
     name: 'to radio',
     type: 'LISTENING',
    },
    status: 'online',
   });
  });
  </code></pre>