'About discord.js V13 start all Intents

The thing is like this, I try to upgrade my original robot to V13 , So I decided to rewrite the bot.

I don’t know how to get all Intents at once I tried Intents.all but it didn't work this is my code

const { Client, Intents, MessageEmbed } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
const cofing = require("./cofig.json");

client.on('ready', () => {
    console.log("================");
    console.log("|i am ready|");
    console.log("================");
});

  client.on('message', async message => {
 if(message.content === 'test'){
     console.log("test")
 } 
});
client.login(cofing.token);

If you could tell me how to write this, I would be very grateful



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source