7 Replies
d.js toolkit
d.js toolkit15mo ago
- 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!
ejay
ejayOP15mo ago
"discord.js": "^14.8.0", "discordx": "^11.4.0", NODE_VERSION=19.8.1
Parogo_72
Parogo_7215mo ago
Seems like you tried to make a request before the bot logged in
ejay
ejayOP15mo ago
I mean okey, but what could cause the bot to logout without any error? We are logging like almost everything, so we should now that state.
Parogo_72
Parogo_7215mo ago
Unless I read your post incorrectly, you were receiving a "No token was present" error This one Error: Expected token to be set for this request, but none was present
ejay
ejayOP15mo ago
Yeah, but we got that error based on the logs after the official Discord just reseted our token. How would it be possible to run the service for like multiple days with token, then somehow the token just disappears from the env without any restart or sync? Based on these, I would say it is might be related to the discord.js token handling, am i wrong?
Parogo_72
Parogo_7215mo ago
Doesnt seem like it if it relogged 1000 times though Common reasons for that error is that you run a setTimeout, setInterval, function before the bot connects to the gateway Or that you create a second client in a command (which you shouldnt do) and try to make a request with it
Want results from more Discord servers?
Add your server