Need help debugging an error
Can anyone help me debug this please? I've looked all around my code but there's nothing about ID. Any lines regarding
something.idsomething.id have been commented out but it still occurs.[06:15:30/ERROR] Cannot read properties of null (reading 'id')
Trace: [06:15:30/TRACE] TypeError: Cannot read properties of null (reading 'id')
at new Context (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\structures\contexts\Context.js:8:42)
at new CommandContext (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\structures\contexts\CommandContext.js:7:9)
at HandlerManager.InteractionCommandHandler [as interactionCommandHandler] (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\handlers\InteractionCommandHandler.js:38:17)
at run (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\listeners\InteractionCommandHandler.js:12:61)
at Listener.run (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\zod\lib\types.js:2522:32)
at Listener._run (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\structures\Listener.js:52:40)
at GClient.emit (node:events:525:35)
at InteractionCreateAction.handle (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\discord.js\src\client\websocket\WebSocketManager.js:354:31)
at ILogger.invoke (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\util\logger\Logger.js:103:24)
at ILogger.trace (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\util\logger\Logger.js:59:14)
at C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\listeners\InteractionCommandHandler.js:15:37
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async run (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\listeners\InteractionCommandHandler.js:12:13)
at async Listener._run (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\structures\Listener.js:52:9)[06:15:30/ERROR] Cannot read properties of null (reading 'id')
Trace: [06:15:30/TRACE] TypeError: Cannot read properties of null (reading 'id')
at new Context (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\structures\contexts\Context.js:8:42)
at new CommandContext (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\structures\contexts\CommandContext.js:7:9)
at HandlerManager.InteractionCommandHandler [as interactionCommandHandler] (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\handlers\InteractionCommandHandler.js:38:17)
at run (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\listeners\InteractionCommandHandler.js:12:61)
at Listener.run (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\zod\lib\types.js:2522:32)
at Listener._run (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\structures\Listener.js:52:40)
at GClient.emit (node:events:525:35)
at InteractionCreateAction.handle (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\discord.js\src\client\websocket\WebSocketManager.js:354:31)
at ILogger.invoke (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\util\logger\Logger.js:103:24)
at ILogger.trace (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\util\logger\Logger.js:59:14)
at C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\listeners\InteractionCommandHandler.js:15:37
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async run (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\listeners\InteractionCommandHandler.js:12:13)
at async Listener._run (C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\structures\Listener.js:52:9)