discord.createScheduledEvent creates a voice, stage, or external Discord scheduled event.
automations/discord-create-scheduled-event.automation.ts
Inputs
Required server ID,entityType, name, and offset ISO scheduledStartTime. Voice/stage events require channelId and cannot set location; external events require location and scheduledEndTime and cannot set channelId. A supplied end time must be after the start time. Optional description and audit-log reason. Optional second argument { account } selects the Discord binding.
Output
Returns the createdDiscordScheduledEvent.
Discord behavior
RequiresCREATE_EVENTS; stage events also depend on stage-channel permissions. scheduledStartTime must be in the future. Discord creates every new event with scheduled status. Create requests are not automatically replayed.