Skip to content

Commit

Permalink
fix automated events not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Nov 6, 2023
1 parent 55feedf commit f1de830
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/services/discord/modules/discord-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]",
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f1de830

Please sign in to comment.