#Cannot read properties of null (reading 'id')

1 messages · Page 1 of 1 (latest)

odd herald

Hey, so I have a code that worked everytime, but now not longer...
Version: 14.11.0

    if (activeRounds[channel.id]) {
                             ^
TypeError: Cannot read properties of null (reading 'id')
    at Object.execute (/home/container/src/commands/guesspic.js:42:30)
    at module.exports (/home/container/src/events/interactionCreate.js:6:13)
    at BoilerplateClient.emit (node:events:512:28)
    at InteractionCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/InteractionCreate.js:97:12)
    at module.exports [as INTERACTION_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:354:31)
    at WebSocketManager.<anonymous> (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:238:12)
    at WebSocketManager.emit (/home/container/node_modules/@vladfrangu/async_event_emitter/dist/index.js:282:31)
    at WebSocketShard.<anonymous> (/home/container/node_modules/@discordjs/ws/dist/index.js:1103:51)
    at WebSocketShard.emit (/home/container/node_modules/@vladfrangu/async_event_emitter/dist/index.js:282:31)```