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

User Info sometimes fails to respond #238

Open
1 task done
pfist opened this issue Sep 26, 2022 · 0 comments
Open
1 task done

User Info sometimes fails to respond #238

pfist opened this issue Sep 26, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@pfist
Copy link
Member

pfist commented Sep 26, 2022

Was this issue already reported?

  • I have searched the existing issues

On which platform did you encounter this issue?

Desktop app

What happened

Executing the /user command sometimes fails to respond due to this error:

TypeError: Cannot read properties of null (reading 'status')
    at UserInfo.run (file:///home/pfist/bots/manny/src/commands/utility/user-info.js:38:83)
    at CommandHandler.handleSlashCommand (file:///home/pfist/bots/manny/node_modules/hiei.js/src/commands/CommandHandler.js:110:21)
    at HieiClient.<anonymous> (file:///home/pfist/bots/manny/node_modules/hiei.js/src/commands/CommandHandler.js:63:21)
    at HieiClient.emit (node:events:513:28)
    at HieiClient.emit (node:domain:489:12)
    at InteractionCreateAction.handle (/home/pfist/bots/manny/node_modules/discord.js/src/client/actions/InteractionCreate.js:81:12)
    at Object.module.exports [as INTERACTION_CREATE] (/home/pfist/bots/manny/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (/home/pfist/bots/manny/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31)
    at WebSocketShard.onPacket (/home/pfist/bots/manny/node_modules/discord.js/src/client/websocket/WebSocketShard.js:481:22)
    at WebSocketShard.onMessage (/home/pfist/bots/manny/node_modules/discord.js/src/client/websocket/WebSocketShard.js:321:10)

What you expected

This command should always return information about a user that's in the server.

Steps to reproduce

  1. Go to any text channel.
  2. Type /user and select any user.
  3. For certain users, Manny will fail to respond.
@pfist pfist added the bug Something isn't working label Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant