Discordjs for win7?
i am not able to get discordjs work on windows 7 something related guild issues also what version of nodejs is requried for it? also it gives proble with like node:
28 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!continuing from https://discord.com/channels/222078108977594368/824411059443204127/1358110212690808943
try with node 22
im using C:\Users\hp>node -v
v23.3.0
hmm that should work as well
what issues are you having
it's most likely unrelated to win7
ill share it in few moments taking screenshot now
also
npm list discord.js
[email protected] F:\fm\main\vcmp-browser-win7
`-- [email protected]
alot of problems with node:
node:events then node:something else and on and on
you're running an electron app
yes i am
actually let me clear u
with latest version of discord npm and electron it works fine
but on lower version of electron thats compatible to win 7 on that discord doesnt work
i mean discordjs
could you
console.log(process.version)
inside the electron app before doing anythingi can tell u
from apckagejson
"electron": "^13.6.9",
that's not what I'm looking for
oh oki wait pls
not sure how electron apps work, but this is how you log node's version in a node app
ill try the console method
for seniding and recing messages for a vcmp game
discordjs being used as proxy
complex stuff..
have already achieved it using latest version of everything
just getting issues for win 7
pretty sure it's just the electron version though
have you tried with that version but on modern windows
yes on modern version of window lets say i have win 11 atm
and it works
but while compiling app for win7
it doesnt work
maybe it ships with a different node version?
hmm no idea
importing node apis using the node: namespace was only supported since v16 iirc
F:\fm\main\vcmp-browser-win7>node -v
v23.3.0
F:\fm\main\vcmp-browser-win7>npm -v
11.0.0
what do i need to update?
oki ill do that
v14.16.0
what do i do to update?
you'll probably have better luck in an electron support community for an answer to that
i see thankyou
im using 11
but my customer is on 7
so yea its hard to make them understand
for 11 is fine for 7 not working 😦
running a bot in an electron app is kind of rare as well, but I think it should work, if you had the right node version
normally it makes much more sense to run it in an actual server
running it in electronjs works fine on latest version of windows, electronjs and nodejs
but issues are in win7 😛
you said you had to change the electron version to support windows 7 though, are you sure it's 100% windows 7 and not just the old electron shipping an old node version
let me tell u
i downgraded my electron app to the version where it supported win7
works fine for all other stuff
but idk what version will it work with discordjs lower version
you need at least node 18 for djs to work iirc
that specific part is breaking because it's using node 16+ imports, and you're on 14