const millisCreated = new Date().getTime() - user.createdAt.getTime();
^
TypeError: Cannot read property 'getTime' of undefined
at Object.exports.run (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\commands\userinfo.js:11:64)
at Client.module.exports.message (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\events\message.js:17:9)
at emitOne (events.js:115:13)
at Client.emit (events.js:210:7)
at MessageCreateHandler.handle (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
at WebSocketPacketManager.handle (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:102:65)
at WebSocketConnection.onPacket (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:325:35)
at WebSocketConnection.onMessage (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:288:17)
at WebSocket.onMessage (C:\Users\SurPRiZe\Desktop\Projects\Ikaros\node_modules\ws\lib\EventTarget.js:103:16)
at emitTwo (events.js:125:13)
userinfo.js not working for me