> From the BotGhost docs: https://botghost.com/docs/custom-commands-and-events/actions/server-actions/scheduled-event-blocks
> Every page: https://botghost.com/docs/llms.txt

# Scheduled Event Blocks

Create, change, start and look up your server's scheduled events.

Five blocks work with the events in your server's **Events** tab. They all need the bot to have **Manage Events**.

| Block | What it does |
| --- | --- |
| **Create a Scheduled Event** | Adds a new event |
| **Edit a Scheduled Event** | Changes an event. Empty fields keep what it has |
| **Start, End or Cancel a Scheduled Event** | Changes its status |
| **Delete a Scheduled Event** | Removes it |
| **Get a Scheduled Event** | Looks one up by ID, by name, or the next one coming up |

## Create a Scheduled Event

![The Create a Scheduled Event settings, with the name, Where and the voice channel picker marked](https://botghost.com/docs/content/assets/workspace/block-scheduled-event-create.png)

- **A** **Name** of the event, with an optional description under it.
- **B** **Where**: a voice channel, a stage, or **External** (a place outside Discord, typed as text).
- **C** The voice or stage channel: from the server, from an earlier block, or an ID or variable.

Below these you set the **start time**, an **end time** (needed for External events), whether it **repeats** (weekdays, weekly, fortnightly, monthly or yearly) and a cover image. Times can be typed like `2026-12-25 18:00` or come from a variable.

The details go into the **Result name**, `scheduled_event` to start with: `{scheduled_event.id}`, `{scheduled_event.url}` and so on.

## Start, End or Cancel a Scheduled Event

![The Start, End or Cancel settings, with Which event, What to do and the result name marked](https://botghost.com/docs/content/assets/workspace/block-scheduled-event-status.png)

- **A** **Which event**: one an earlier block made, or an ID or variable.
- **B** **What to do**: **Start** (it goes live straight away), **End** a live event, or **Cancel** one that hasn't started.
- **C** **Result name** for the event's details afterwards.

## Get a Scheduled Event

Finds an event and stores its details, such as `{scheduled_event.name}`, `{scheduled_event.start_timestamp}` and `{scheduled_event.user_count}` (how many people are interested). Pick it by ID, by name, or choose **next** for the next event coming up.

## Success and error paths

Turn on **Enable Success/Error Handles** to run different blocks when it works (green path) and when it fails (red path).
