This question has the same error in the question I marked it as a duplicate for (How can I migrate my code to Discord.js v12 from v11?). They both contain the same error, the same problem, and the same answer. Can anyone tell me why the 3 reviewers chose Leave Open?
1 Answer
They both contain the same error
No, they don't. There's nothing on the proposed target about message.guild.channels.get
, and as someone not familiar with the library, it's not immediately obvious that this is one of the things that was changed to a manager (a fact that I was able to deduce only by looking at your deleted answer and then searching for "cache" on the target).
the same problem
Kiiind of. One asks how to send a message to a specific channel, an answer to which would be useful in its own right, even for people not migrating. The other asks how to migrate code. The root cause of the crash is similar, though.
and the same answer
Again, kind of. A good answer to this question would address the titular question "How can I send a specific message to a channel?" in addition to addressing why they're getting that specific error. This would make the question more useful to future people trying to do that.
message.guild.channels.get
)...cache
property. I've seen other questions closed as duplicates for that before