Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot crash while it updates itself #6510

Closed
Positive2022 opened this issue Aug 23, 2021 · 1 comment · Fixed by #6511
Closed

Bot crash while it updates itself #6510

Positive2022 opened this issue Aug 23, 2021 · 1 comment · Fixed by #6511

Comments

@Positive2022
Copy link

Please describe the problem you are having in as much detail as possible:
I was updating my bot's pfp and I had my bots console opened cuz I was updating it. Just when i updated the bot's pfp, the bot crashed giving out an error.

Error:

/home/container/node_modules/discord.js/src/client/actions/UserUpdate.js:11
    const oldUser = newUser._update(data);
                            ^

TypeError: Cannot read property '_update' of undefined
    at UserUpdateAction.handle (/home/container/node_modules/discord.js/src/client/actions/UserUpdate.js:11:29)
    at Object.module.exports [as USER_UPDATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/USER_UPDATE.js:4:29)
    at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:345:31)
    at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:443:22)
    at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:300:10)
    at WebSocket.onMessage (/home/container/node_modules/ws/lib/event-target.js:132:16)
    at WebSocket.emit (node:events:394:28)
    at Receiver.receiverOnMessage (/home/container/node_modules/ws/lib/websocket.js:970:20)
    at Receiver.emit (node:events:394:28)
    at Receiver.dataMessage (/home/container/node_modules/ws/lib/receiver.js:517:14)

Further details:

  • discord.js version: 13.1.0
  • Node.js version: 16.1.0
  • Operating system: LInux
  • Priority this issue should have – please be realistic and elaborate if possible: Medium

Relevant client options:

  • partials: none
  • gateway intents: none
  • other: All non privilleged intents.
@Positive2022
Copy link
Author

Positive2022 commented Aug 23, 2021

Note: Also happened when I changed the bots username.
Note 2: The pfp error that occured when I changed application's pfp which ofcourse changes bot user's pfp.
Edit: Same error when I remove/add a intent to bot from discord developer portal.

@SpaceEEC SpaceEEC linked a pull request Aug 23, 2021 that will close this issue
@kyranet kyranet added has PR and removed need repro labels Aug 25, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants