(TypeError: Cannot read property 'id' of undefined) this error comes for project of discord bot

my project name is fluorescent-standing-horesradish
this give me error as follows

pls give a solution for this @cori

discord id ! I AM YKB α›„#4521 (646730886607405056)

i have same error

Can you show us where channel is defined?

no channel is mention in code

According to the error stack you’re using discord.js 11 which is no longer supported and has a high probability of breaking whenever the discord api changes - which is exactly what has happened here with the release of stage channels.

You should really follow the official advice and update.to discord.js 12.

1 Like