According to docs:
new Midjourney(SALAI_TOKEN) directly provide SALAI_TOKEN
in this case a 72 char long SALAI_TOKEN token should be pass to the Midjourney constructor like: new Midjourney(SALAI_TOKEN)
https://www.npmjs.com/package/midjourney-discord-api#new-midjourneysalai_token-directly-provide-salai_token
Since this constructor is indistinguishable from the one that take a filename (also a string), the result is predictable:
NotFound [Error]: ENOENT: no such file or directory, open '<SALAI_TOKEN>'
According to docs:
new Midjourney(SALAI_TOKEN) directly provide SALAI_TOKEN
in this case a 72 char long SALAI_TOKEN token should be pass to the Midjourney constructor like: new Midjourney(SALAI_TOKEN)
https://www.npmjs.com/package/midjourney-discord-api#new-midjourneysalai_token-directly-provide-salai_token
Since this constructor is indistinguishable from the one that take a filename (also a string), the result is predictable:
NotFound [Error]: ENOENT: no such file or directory, open '<SALAI_TOKEN>'