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

325
Vistas
ReferenceError: websiteCheck is not defined discord.js

So I was basically coding a discord.js v12 bot and NodeJS keeps giving me this error even though websiteCheck is defined. If you can help thank you so much <3


function websiteCheck() {
    // im not showing code because it will advertise a website.
};
  const scheduledCheck = schedule.scheduleJob('*/1 * * * *', function(){
    console.log('Checking Status of site');
    websiteCheck()
});

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

So basically function wasnt being read somehow in the script, it started working with const websiteCheck = async function(){. Now its defined and everything is normal.

I don't know why function wasn't being read but oh well.

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