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
}
});
Via Active questions tagged javascript - Stack Overflow https://ift.tt/NPZM6FY
Comments
Post a Comment