I've been working through creating this bot using discord.js and I just can't for the life of me figure out how to use the command and event handler with ESM.
CodePudding user response:
if you want to use import
in node,you must change the value of the type
option in package.json
to module