58 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!Show the full error
what is line 21 of guildMemberAdd
and it does return the buffer
Seems like an issue with your con.query then, #other-js-ts
you mean 213?
not 21
ah yeah 213
that what the hole thing is
i honestly have no clue, ive never seen this error before
ty for trying to help i wait to see if any else can help thanks so much
hey, can you re-run your app with --enable-source-maps
and get the error again
so like this node index.js -enable-source-maps?
node --enable-source-maps index.js
yes
that ^
thats what i get back
yeah thanks, im trying to look into it
ty
Whats your node version?
what node version are you on
🐌
Could you try upgrading node and seeing if that solves it?
to?
try v20.15.01
nevermind, we spoke about this and there is something terribly wrong happening here
are you using npm?
yeah?
can you run
npm explain form-data
okay...
npm ls @discordjs/rest
Are you using form-data anywhere in your project?
yeah
and are you overriding the global formdata at all?
how about this
Imma delete that due to a possible api token leak
are you doing something like,
process.FormData =
or globalThis.FormData =
anywherenope
this is a very strange problem!
i try remove that and see if it works
what appears to be happening is that, instead of
globalThis.FormData
being the built-in node one, or, at worst the undici
one that @discordjs/rest
tries to use, your global FormData is the one from the module
which shouldn't be happening unless you're doing that or one of your dependencies is doing thatWell theres no dep using it
so i have removed it from the client file
yea? and?
yip same thing
imported
now it works
what is FormData
😤
Neither of those are modules you need
lol
so how would i do my post thing with form data
this
nah that token not in use old one haha
delete the require?
TOS violating packages too?
what packages
oh yeah i not uppdate that package.json
its been removed
only one i see is ytdl-core
discord player has youtube in it
but there spotify or SOUNDCLOUD
bruh
so no music bot so stupid