From 3138e1be4106de7c77b185b827dd2fdf8c954ccd Mon Sep 17 00:00:00 2001 From: Kieran Date: Wed, 7 Sep 2022 20:13:58 +0100 Subject: [PATCH] Scheduled timestamp to At --- events/guildScheduledEvent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events/guildScheduledEvent.js b/events/guildScheduledEvent.js index f03240a..c941db0 100644 --- a/events/guildScheduledEvent.js +++ b/events/guildScheduledEvent.js @@ -21,10 +21,10 @@ client.on('guildScheduledEventCreate', async guildScheduledEvent =>{ embed.addField('Location', `External - ${guildScheduledEvent.entityMetadata.location}`) } - embed.addField('Start Date and Time', `${guildScheduledEvent.scheduledStartTimestamp ? time(guildScheduledEvent.scheduledStartTimestamp, "F") : "Unknown"}`, true) + embed.addField('Start Date and Time', `${guildScheduledEvent.scheduledStartAt ? time(guildScheduledEvent.scheduledStartAt, "F") : "Unknown"}`, true) if(guildScheduledEvent.scheduledEndAt !== null) { - embed.addField('End Date and Time', `${guildScheduledEvent.scheduledEndTimestamp ? time(guildScheduledEvent.scheduledEndTimestamp, "F") : "Unknown"}`, true) + embed.addField('End Date and Time', `${guildScheduledEvent.scheduledEndAt ? time(guildScheduledEvent.scheduledEndAt, "F") : "Unknown"}`, true) } embed.addField('InviteURL', `${guildScheduledEvent.url}`)