Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
Cannot send messages to discord channel anymore

I recently noticed that my discordbot stopped working, I haven't upgraded anything on my server and it just stopped working.

I noticed in the logs. Figured I had old versions of packages and I upgraded to discord.js v13 and everything borked even more.

discclient.channels.fetch(item.channel[i]).send(msgembed)

Now i'm stuck here.

index2.js:46
                                channel.send({ embeds: [msgembed] });
                                        ^

TypeError: Cannot read properties of undefined (reading 'send')

Anyone got an idea? Have they changed alot of stuff?

Thank you!

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

GuildChannelManager#fetch() returns a promise, you have to resolve it before trying to access the channel.

discclient.channels.fetch(item.channel[i])
   .then(channel => channel.send({ embeds: [msgembed] }))
   .catch(console.error);

Guide for Updating from v12 to v13

about 4 years ago · Juan Pablo Isaza Report

0

This simply means that the channel doesn't exist. Try fetching and verifying if it found it, before sending the message.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!