client.events = new Discord.Collection();
['event_handler', 'command_handler'].forEach(handler =>{
require(`./handlers/${handler}`)(client, Discord);
})
Have that, and for some reason the console says “require is not a function”. Error right below:
require(`./handlers/${handler}`)(client, Discord);
^
TypeError: require(...) is not a function
What can I do to fix this? I tried everything I could but no luck.