Tags
{thread} Tags
Threads are channels, so {channel.edit} can rename, archive, lock, slow down, or change the auto-archive duration of a thread. These tags expose thread-specific information and controls for forum and media posts.
# {thread.ownerId;thread}
Returns the ID of the user who created a thread.
# {thread.archived;thread}
Returns whether a thread is archived.
# {thread.locked;thread}
Returns whether a thread is locked.
# {thread.autoArchiveDuration;thread}
Returns the configured auto-archive duration in minutes.
For each of the preceding tags, thread is a Channel and defaults to the context channel.
# {thread.appliedTags;thread}
Returns an array of tag IDs applied to a forum or media post. The target must be a thread whose parent is a forum or media channel.
# {thread.pinned;thread}
Returns whether a forum or media post is pinned. The target must be a forum or media post.
# {thread.setTags;tags;thread;reason} mutateChannel
Replaces the tags applied to a forum or media post. tags is a JSON array of tag names, IDs, or both. A post can have at most five tags.
| Name | Type | Default |
|---|---|---|
tags | JSON array of strings | |
thread | Channel | context Channel |
reason | string? |
{thread.setTags;["Resolved", "234567890123456789"]}
# {thread.pin pinned;thread;reason} mutateChannel
Pins or unpins a forum or media post. Pinned posts do not auto-archive.
| Name | Type | Default |
|---|---|---|
pinned | boolean | true |
thread | Channel | context Channel |
reason | string? |