Skip to content

User Info sometimes fails to respond #238

@pfist

Description

@pfist

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions