Discord.js FS Module Broken?

Definitely the issue is .. /, which attempts to go one folder up.

The fs module always reads from the project root, not from the current file, so even if mutes.js is in a subfolder, it still needs to refer to . /mutes.json if that file is in the root folder.

1 Like