Skip to content

TypeError: Cannot read property 'displayName' of null #37

@iCiaran

Description

@iCiaran
TypeError: Cannot read property 'displayName' of null
    at logMessageInfo (/home/hopbot/HopsonBot/src/events/message_sent_handler.js:103:33)
    at MessageSentHandler.handleMessageSent (/home/hopbot/HopsonBot/src/events/message_sent_handler.js:26:9)
    at Client.client.on (/home/hopbot/HopsonBot/src/hopson_bot.js:31:37)
    at Client.emit (events.js:159:13)
    at MessageCreateHandler.handle (/home/hopbot/HopsonBot/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
    at WebSocketPacketManager.handle (/home/hopbot/HopsonBot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
    at WebSocketConnection.onPacket (/home/hopbot/HopsonBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
    at WebSocketConnection.onMessage (/home/hopbot/HopsonBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
    at WebSocket.onMessage (/home/hopbot/HopsonBot/node_modules/ws/lib/event-target.js:120:16)
    at WebSocket.emit (events.js:159:13)

Can just check if it's null first but would rather know what caused it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions