Skip to content

Commit b3e46ef

Browse files
committed
templates: document ThreadMetadata field present on threads
Signed-off-by: Luca Zeuch <[email protected]>
1 parent 4835522 commit b3e46ef

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/docs/reference/templates/syntax-and-data.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,25 @@ Similarly, provided a channel `$channel`, `$channel.Name` gives the name of the
123123
| .Channel.ParentID | The ID of the channel's parent (category), returns 0 if none. |
124124
| .Channel.PermissionOverwrites | A slice of [Discord permission overwrite](https://discord.com/developers/docs/resources/channel#overwrite-object) structures applicable to the channel. |
125125
| .Channel.Position | Channel position from top-down. |
126+
| .Channel.ThreadMetadata | [Metadata for threads](#thread-metadata). Only present on threads. |
126127
| .Channel.Topic | The topic of the channel. |
127128
| .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) |
128129

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

131133
[Channel functions documentation](functions#channel).
132134

135+
#### Thread Metadata
136+
137+
| **Field** | **Description** |
138+
| --------------------------- | ------------------------------------------------------------------------------ |
139+
| .Archived | Whether the thread is archived. |
140+
| .AutoArchiveDuration | Duration in minutes to automatically archive the thread after recent activity. |
141+
| .ArchiveTimestamp | When the thread was archived. |
142+
| .Locked | Whether the thread is locked. |
143+
| .Invitable | Whether non-moderators can add other members to the thread. |
144+
133145
### Guild / Server{#guild-server}
134146

135147
| **Field** | **Description** |

0 commit comments

Comments
 (0)