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,
})
Inputs
Server the event belongs to.
Channel where the event will take place (required for Stage/Voice).
Name of the scheduled event.
Description of the event.
Event start time as a Unix timestamp.
Example: 1733030400
Event end time as a Unix timestamp.
Example: 1733034000
Event type.
Location for External events (URL or description).
Base64 encoded image for the scheduled event.
Outputs
ID of the scheduled event.
ID of the server for the event.
Channel ID for Stage/Voice events.
User ID of the event creator.
Name of the scheduled event.
Description of the scheduled event.
Start time as Unix timestamp.
End time as Unix timestamp.
Status of the scheduled event.
Event type.
Number of users subscribed to the 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
create_scheduled_eventInputs
| Field | InventScript name | Value |
|---|---|---|
| Server ID | server_id | |
| Channel ID | channel_id | |
| Name | name | |
| Description | description | |
| Start Time (Unix) | start_time_unix | e.g. "1733030400" |
| End Time (Unix) | end_time_unix | e.g. "1733034000" |
| Type | type_ | "Stage Instance", "Voice", "External" |
| Location | location | |
| Base64 Encoded Image | image_url |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Event ID | event_id | |
| Server ID | server_id | |
| Channel ID | channel_id | |
| Creator User ID | creator_user_id | |
| Name | name | |
| Description | description | |
| Start Time (Unix) | start_time_unix | |
| End Time (Unix) | end_time_unix | |
| Status | status | |
| Type | type_ | |
| Subscribed User Count | subscribed_user_count |