Skip to content

Commit

Permalink
Add Label.colorIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
allburov committed Aug 1, 2024
1 parent ed4e24c commit 104a6da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,8 @@ declare namespace WAWebJS {
id: string,
/** Color assigned to the label */
hexColor: string,
/** Color index for the label */
colorIndex: string,

/** Get all chats that have been assigned this Label */
getChats: () => Promise<Chat[]>
Expand Down
6 changes: 6 additions & 0 deletions src/structures/Label.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ class Label extends Base {
* @type {string}
*/
this.hexColor = labelData.hexColor;

/**
* Label color index
* @type {number}
*/
this.colorIndex = labelData.colorIndex;
}
/**
* Get all chats that have been assigned this Label
Expand Down

0 comments on commit 104a6da

Please sign in to comment.