Uploading larger files fail, when uploading it to my discord bot
when trying to upload, mostly videos, it fails and i get thsi. The problem is, the file never even reaches the discord bot, instantly i see this message. What might be the problem?
code:
upload.js
12 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!npm list discord.js:
└── [email protected]
node -v:
v21.7.1
it does work with small files, such as images or text
and videos do work when theyre under 20mb
or something around that
is it a code issue?
I suggest you deferReply, clearly its simply taking longer than 3 seconds to process the larger files
oh okay, how do i do this?
and where do i put this in my code exactly?
because i tried to put it on the first bit, but it didnt work
Didnt work how?
You put it before any actions that are expected to take a long time
And make sure to await it
i did, but the code doesnt even run
immediately after entering the command
not a ms later
it says this
its not running any code, it just says this when the file is larger
Is it your upload limit thats the issue then?
maybe