Import all commands from folder with ES modules
So my previous bot I build I used CommonJS and did the commands like this:
But now I really prefer to work with ES modules also because they are by default async.
But now I have been thinking about a way to import all commands from the folder. But it doesn't work that easy with
Anyone know a good way to do this.
Because the export where build like
But now I really prefer to work with ES modules also because they are by default async.
But now I have been thinking about a way to import all commands from the folder. But it doesn't work that easy with
import.Anyone know a good way to do this.
Because the export where build like

