Skip to content

Commit

Permalink
templates: document ThreadMetadata field present on threads
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Zeuch <l-zeuch@email.de>
  • Loading branch information
l-zeuch committed Jan 7, 2025
1 parent 4835522 commit b3e46ef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions content/docs/reference/templates/syntax-and-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,25 @@ Similarly, provided a channel `$channel`, `$channel.Name` gives the name of the
| .Channel.ParentID | The ID of the channel's parent (category), returns 0 if none. |
| .Channel.PermissionOverwrites | A slice of [Discord permission overwrite](https://discord.com/developers/docs/resources/channel#overwrite-object) structures applicable to the channel. |
| .Channel.Position | Channel position from top-down. |
| .Channel.ThreadMetadata | [Metadata for threads](#thread-metadata). Only present on threads. |
| .Channel.Topic | The topic of the channel. |
| .Channel.Type | The type of the channel. Explained further in [Discord's channel documentation](https://discord.com/developers/docs/resources/channel#channel-object-channel-types) |


[Channel object in Discord documentation](https://discordapp.com/developers/docs/resources/channel#channel-object).

[Channel functions documentation](functions#channel).

#### Thread Metadata

| **Field** | **Description** |
| --------------------------- | ------------------------------------------------------------------------------ |
| .Archived | Whether the thread is archived. |
| .AutoArchiveDuration | Duration in minutes to automatically archive the thread after recent activity. |
| .ArchiveTimestamp | When the thread was archived. |
| .Locked | Whether the thread is locked. |
| .Invitable | Whether non-moderators can add other members to the thread. |

### Guild / Server{#guild-server}

| **Field** | **Description** |
Expand Down

0 comments on commit b3e46ef

Please sign in to comment.