I am working on this Discord bot, but it seems that I can't get started well. I hope you guys can help. I want the bot to give me a list of channels there is in the Discord so I can receive the channel ID from it. Here is the code:

```js
const Discord = require('discord.js');
const client = new Discord.Client();

client.on('ready', () => {
  console.log("Connected as " + client.user.tag);

  client.user.setActivity("Playing BackSideRP");
  client.guilds.forEach((guilds) => {
    console.log(guild.name);
  });
});

```

And here is what it says at the terminal:

> 
> (node:20572) UnhandledPromiseRejectionWarning: TypeError: client.guilds.forEach is not a function
> 
> 
> 

If anyone have any suggestion on how to fix this problem, please do write back! :)