I’m trying to create and advanced command handler and I’m getting the error ‘CLIENT_MISSING_INTENTS’ and I feel like I’ve written the code perfectly

So I’m trying to branch off from a basic command line to an advanced command handler where the commands will call the command from a different file. I’ve been following videos and guides and I feel like there should be no issues and I also don’t have any errors within VSC. But after starting the discord bot and I inputted the node . command and got the error [Symbol(code)]: ‘CLIENT_MISSING_INTENTS’. This is my current code


    const client = new Discord.Client();

    const prefix = '-'

    const fs = require('fs');

    client.commands = new Discord.Collection();

    const commandFiles = fs.readdirSync('./commands/').filter(file => file.endsWith('.js'));
    for(const file of commandFiles){
        const command = require(`./commands/${file}`);

        client.commands.set(command.name, command);
    }


    client.once('ready', () => {
        console.log('You are connected to Weekly Releases!');
    });

    client.on('messageCreate', message => {
        if(!message.content.startsWith(prefix) || message.author.bot) return;

        const args = message.content.slice(prefix.length).split(/ +/);
        const command = args.shift().toLowerCase();

        if(command === 'ping'){
            client.commands.get('ping').execute(message, args);

        } else if (command == 'youtube'){

        }
    });

    client.login```
and I don't know where to look for the issue. Any tips and tricks will help.