Skip to content

Commit

Permalink
feat: Added applied_tags field to channel structure (#607)
Browse files Browse the repository at this point in the history
Co-authored-by: Snazzah <7025343+Snazzah@users.noreply.github.com>
  • Loading branch information
polvallverdu and Snazzah authored Mar 4, 2024
1 parent 7b77c8c commit 4085c88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ export interface CommandChannel {
default_forum_layout?: number;
default_auto_archive_duration?: number;
available_tags?: ForumTag[];
applied_tags?: string[];
}

/** Channel metadata for thread-specific channel fields */
Expand Down
3 changes: 3 additions & 0 deletions src/structures/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export class Channel {
readonly defaultAutoArchiveDuration?: number;
/** The available tags that can be used in posts (Forum channels only) */
readonly availableTags?: ForumTag[];
/** The applied tags of the thread (Threads inside forums only) */
readonly appliedTags?: string[];

private _permissionsBitfield?: Permissions;
private _permissions?: string;
Expand Down Expand Up @@ -94,6 +96,7 @@ export class Channel {
this.defaultForumLayout = data.default_forum_layout;
this.defaultAutoArchiveDuration = data.default_auto_archive_duration;
this.availableTags = data.available_tags;
this.appliedTags = data.applied_tags;
}

/** The string that mentions this channel. */
Expand Down

0 comments on commit 4085c88

Please sign in to comment.