#readdirSync error
4 messages · Page 1 of 1 (latest)
one of your command paths is a .js file
specifically commands/ping.js
You should move the filter to the first readdirSync (and use => instead of =) and remove the entire first for loop which is unnecessary