I used backticks yet the string interpolation is not working, what's even weirder is that it is sometimes working in other parts of the code.
It's not working here
let files = getFiles(`./commands/${category}`, ".js")
But it is working here
if (reload)
delete require.cache[require.resolve(`./commands/${category}/${f}`)]
this is the error I'm getting
let files = getFiles(`./commands/${category}`, ".js")
^
ReferenceError: category is not defined