> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dogebot.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Channel and thread events

> These run when channels or threads are made, changed or removed.

These run when channels or threads are made, changed or removed.

> **Example**
>
> Post in your log channel whenever a channel is deleted.

> [!NOTE]
>
> **How to use one:** go to **Events**, press **New Event**, pick the event from the list, then add blocks under it.

## Variables many of these events share

**About the channel**

| Type this | What you get |
| - | - |
| `{event_channel_id}` | The channel ID |
| `{event_channel_name}` | The channel name |
| `{event_channel_parent_id}` | The category ID (or the forum, for a forum post) |
| `{event_channel_parent_name}` | The category name |
| `{event_parent_channel_id}` | The category ID |

**About the server**

| Type this | What you get |
| - | - |
| `{event_guild_id}` | The server ID |
| `{event_guild_name}` | The server name |

## Channel events

> **When a channel is created**
>
> **When it runs:** a new channel is made.
>
> **Variables:** the channel and server variables.
>
> **Build idea:** post "New channel: `{event_channel_name}`" in your log channel.

> **When a channel is updated**
>
> **When it runs:** a channel is changed, for example renamed.
>
> **Variables:** the channel variables. Plus:
>
> | Type this | What you get |
> | - | - |
> | `{event_old_name}` | The old name |

> **When a channel is deleted**
>
> **When it runs:** a channel is removed.
>
> **Variables:** the channel and server variables.
>
> **Build idea:** warn your staff in a log channel.

> **When a channel's permissions are updated**
>
> **When it runs:** who can see or use a channel changes.
>
> **Variables:** the channel variables.

> **When a channel's topic is updated**
>
> **When it runs:** a channel gets a new topic.
>
> **Variables:** the channel variables. Plus:
>
> | Type this | What you get |
> | - | - |
> | `{event_new_topic}` | The new topic |
> | `{event_old_topic}` | The old topic |

> **Channel Pins Updated**
>
> **When it runs:** the pinned messages in a channel change.
>
> **Variables:** the channel variables. Plus:
>
> | Type this | What you get |
> | - | - |
> | `{event_pins_updated_at}` | When the pins changed |

## Thread events

> **When a thread is created**
>
> **When it runs:** a thread is made. It also runs when someone makes a **forum post**.
>
> **Variables:** the channel and server variables. Plus:
>
> | Type this | What you get |
> | - | - |
> | `{event_thread_id}` | The thread ID |
> | `{event_thread_name}` | The thread name |
>
> **Build idea:** greet every new forum post with tips, like "Thanks for your question! Please add a screenshot."

> **When a thread is updated**
>
> **When it runs:** a thread is changed.
>
> **Variables:** the server variables, plus `{event_thread_id}` and `{event_thread_name}`.

> **When a thread is deleted**
>
> **When it runs:** a thread is removed.
>
> **Variables:** the server variables, plus `{event_thread_id}` and `{event_thread_name}`.

> **Thread List Synchronized**
>
> **When it runs:** the list of threads is synced.
>
> **Variables:** the server variables. Plus:
>
> | Type this | What you get |
> | - | - |
> | `{event_thread_count}` | How many threads |
> | `{event_thread_ids}` | All the thread IDs |

> **Thread Members Updated**
>
> **When it runs:** people are added to or removed from a thread.
>
> **Variables:** the channel variables. Plus:
>
> | Type this | What you get |
> | - | - |
> | `{event_added_count}` | How many people were added |
> | `{event_added_member_ids}` | IDs of the people added |
> | `{event_removed_count}` | How many people were removed |
> | `{event_removed_member_ids}` | IDs of the people removed |
> | `{event_thread_id}` | The thread ID |
> | `{event_thread_name}` | The thread name |

> **Thread Member Updated**
>
> **When it runs:** something changes for one member of a thread.
>
> | Type this | What you get |
> | - | - |
> | `{event_thread_id}` | The thread ID |
> | `{event_thread_name}` | The thread name |
> | `{event_user_id}` | The member's ID |

## Example

Under **When a channel is deleted**, a message block in your log channel says:

```text theme={null}
The channel #{event_channel_name} was deleted.
```

The bot shows: **The channel #memes was deleted.**


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.