From f1de8304500339d0ff4036e56f1f9981ab6cfe06 Mon Sep 17 00:00:00 2001 From: Techbot121 Date: Mon, 6 Nov 2023 17:50:06 +0100 Subject: [PATCH] fix automated events not working --- app/services/discord/modules/discord-events.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/services/discord/modules/discord-events.ts b/app/services/discord/modules/discord-events.ts index 2e883a9d..5d29f9d6 100644 --- a/app/services/discord/modules/discord-events.ts +++ b/app/services/discord/modules/discord-events.ts @@ -8,7 +8,7 @@ const events = [ { icon: "vr", eventData: { - entityType: Discord.GuildScheduledEventEntityType.Voice, + entityType: Discord.GuildScheduledEventEntityType.External, privacyLevel: Discord.GuildScheduledEventPrivacyLevel.GuildOnly, entityMetadata: { location: "VRChat" }, name: "VRChat [Automated Event]", @@ -46,6 +46,7 @@ export default (bot: DiscordBot): void => { const event = await guild.scheduledEvents.create({ ...eventData, scheduledStartTime: nextDate.toDate(), + scheduledEndTime: nextDate.add(4, "hours").toDate(), }); if (notificationChannel)