Message missing Embeds that should be there. Restarting the bot fixes the problem.

This question is to continue the conversation started in #djs-help-v14 from here (https://discord.com/channels/222078108977594368/824411059443204127/1225880568533745806) to not clutter the channel. After running the bot for a while on a remote server in pterodactyl (docker container management platform), the message that is being fetched is checked by this function for embeds which it should contain. However the message does not contain embeds according to the output of the logger. Restarting the bot fixes that problem and it works as expected. Things I have changed: - forcing the message fetch to make an http request and skip the cache check. (hard to test so we have to wait if that does the trick)
GitHub
kiwitech-bot-bun/src/commands/application.ts at main · defnot001/ki...
Contribute to defnot001/kiwitech-bot-bun development by creating an account on GitHub.
No description
2 Replies
d.js toolkit
d.js toolkit2mo 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!
defnot
defnot2mo ago
"devDependencies": {
"@biomejs/biome": "1.6.1",
"@types/pg": "^8.11.2",
"bun-types": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@napi-rs/canvas": "^0.1.44",
"discord.js": "^14.14.1",
"pg": "^8.11.3",
"ptero-client": "^1.1.3",
"sharp": "^0.33.1"
},
"devDependencies": {
"@biomejs/biome": "1.6.1",
"@types/pg": "^8.11.2",
"bun-types": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@napi-rs/canvas": "^0.1.44",
"discord.js": "^14.14.1",
"pg": "^8.11.3",
"ptero-client": "^1.1.3",
"sharp": "^0.33.1"
},