So im making a discord bot and i am getting this error if running
TypeError [ERR_INVALID_ARG_TYPE]: The “listener” argument must be of type function. Received undefined
my code that i put in is
const Discord = require (‘discord.js’);
const client = new Discord.Client();
client.once(‘ready’,); () => {
console.log ('JorisAndCoStudiosBot is now Online!')