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

218
Vistas
How can I add a cover image to a Discord Scheduled Event?

I have created an event through the Discord JS Library, and would like to add a user option to add a cover image.

The code below is working fine, but the image isn't being added to the event. Any help would be great, thank you.

const event = await interaction.guild.scheduledEvents.create({
        name: name,
        description: description,
        image: 'https://i.imgur.com/2nvP4Lm.jpeg',
        scheduledStartTime: new Date(`${eventDate} ${startTime}`),
        scheduledEndTime: new Date(`${eventDate} ${endTime}`),
        privacyLevel: 2,
        entityType: 'EXTERNAL',
        entityMetadata: {
            location: location
        }
    });
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

So the first thing you are going to want to do is update your discord to v13.7.0 which just came out yesterday

npm i discord.js@latest

Then your code will work as is. Per github: Bug Fixes

GuildScheduledEvent: Handle missing image for v13 (#7627) (dfea9c2)

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