Create Scheduled Event

BlockScheduled Event

Create a scheduled event.

Inputs

Server IDRequired

Server the event belongs to.

Channel ID

Channel where the event will take place (required for Stage/Voice).

NameRequired

Name of the scheduled event.

DescriptionRequired

Description of the event.

Start Time (Unix)Required

Event start time as a Unix timestamp.

Example: 1733030400

End Time (Unix)

Event end time as a Unix timestamp.

Example: 1733034000

TypeRequired

Event type.

OptionsStage InstanceVoiceExternal
Location

Location for External events (URL or description).

Base64 Encoded Image

Base64 encoded image for the scheduled event.

Outputs

Event ID

ID of the scheduled event.

Server ID

ID of the server for the event.

Channel ID

Channel ID for Stage/Voice events.

Creator User ID

User ID of the event creator.

Name

Name of the scheduled event.

Description

Description of the scheduled event.

Start Time (Unix)

Start time as Unix timestamp.

End Time (Unix)

End time as Unix timestamp.

Status

Status of the scheduled event.

Type

Event type.

Subscribed User Count

Number of users subscribed to the event.

Build a bot using blocks like Create Scheduled Event

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: create_scheduled_event

Inputs

FieldInventScript nameValue
Server IDserver_id
Channel IDchannel_id
Namename
Descriptiondescription
Start Time (Unix)start_time_unixe.g. "1733030400"
End Time (Unix)end_time_unixe.g. "1733034000"
Typetype_"Stage Instance", "Voice", "External"
Locationlocation
Base64 Encoded Imageimage_url

Outputs

FieldInventScript nameValue
Event IDevent_id
Server IDserver_id
Channel IDchannel_id
Creator User IDcreator_user_id
Namename
Descriptiondescription
Start Time (Unix)start_time_unix
End Time (Unix)end_time_unix
Statusstatus
Typetype_
Subscribed User Countsubscribed_user_count

Example InventScript

scheduledEvent := create_scheduled_event(Args{
	server_id:       trigger.server_id,
	name:            "...",
	description:     "...",
	start_time_unix: "1733030400",
	type_:           "Stage Instance",
})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Event ID: " + scheduledEvent.event_id,
})

More scheduled event blocks