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.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)
6 Replies
d.js toolkit
d.js toolkit12mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
KAVI
KAVI12mo ago
This is certainly not a dJS problem mate. That is related to the gamecord library. Take a look at what's in C:\Users\andyj\Documents\GitHub\gamecord\client\node_modules\gcommands\dist\lib\structures\contexts\Context.js:8:42
AJ
AJ12mo ago
Gcommands package is the issue and I’ve contacted their dev team All good thanks
Mockir
Mockir12mo ago
Bro also I use gamecord there is an error I talk with creator this module he look about it
AJ
AJ12mo ago
Bruh GameCord is not the package GameCord is my Doscord bot Gcommands is the library I’m using
Mockir
Mockir12mo ago
oh sorry I mb there is package discord-gamecord mb sorry