From 8c717585d4a82b287f9c1debee1fe4839e3539d7 Mon Sep 17 00:00:00 2001 From: Pete Stenger Date: Mon, 2 Sep 2024 19:39:26 -0500 Subject: [PATCH] do the thing --- src/functions/discord.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/functions/discord.ts b/src/functions/discord.ts index 394ed73..da01caa 100644 --- a/src/functions/discord.ts +++ b/src/functions/discord.ts @@ -72,7 +72,7 @@ export const updateDiscord = async ( const { title, description, start, end, location, host } = event; const dateStart = moment.tz(start, "America/Chicago").format("YYYY-MM-DD"); const calendarURL = `https://www.acm.illinois.edu/calendar?id=${id}&date=${dateStart}`; - const fullDescription = `${calendarURL}\n${description}`; + const fullDescription = `${description}\n${calendarURL}`; const fullTitle = title.toLowerCase().includes(host.toLowerCase()) ? title : `${host} - ${title}`; @@ -84,6 +84,7 @@ export const updateDiscord = async ( description: fullDescription, scheduledStartTime: moment.tz(start, "America/Chicago").utc().toDate(), scheduledEndTime: end && moment.tz(end, "America/Chicago").utc().toDate(), + image: existingMetadata?.coverImageURL({}) || undefined, entityMetadata: { location, },