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

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

Open
iCiaran opened this issue Sep 23, 2018 · 2 comments
Open

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

iCiaran opened this issue Sep 23, 2018 · 2 comments

Comments

@iCiaran
Copy link
Contributor

iCiaran commented Sep 23, 2018

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.

@Hopson97
Copy link
Member

🤔

@Hopson97
Copy link
Member

Is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants