Basically my first error was TypeError: require(...) is not a function, so I immediately put a ; at the end of require("./handlers/slashcommands"). But then I come home with this error: ReferenceError: reload is not defined. This is after I put ; after my requirment.
I'm mainly worrying about this part:
client.slashcommands = new Discord.Collection()
client.loadSlashCommands = (bot, reload) => require("./handlers/slashcommands");
(bot, reload)
client.loadSlashCommands(bot, false)
Any help would be appreciated!
(bot, reload), by itself, is nonsense (and you get the error because bot and reload are arguments to the arrow function, so when you move (bot, reload) outside it, the variable isn't available).
It is supposed to call the function returned by require(...).
Take the semi-colon back out:
(bot, reload) => require("./handlers/slashcommands")(bot, reload);
Then you need to address the real problem, which is that the slashcommands module is supposed to export a function, but currently doesn't.