Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

117
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda