diff --git a/index.d.ts b/index.d.ts index ec16c7def9..e1709d8d0c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 diff --git a/src/structures/Label.js b/src/structures/Label.js index 0a06754c4e..a0ccb4c28b 100644 --- a/src/structures/Label.js +++ b/src/structures/Label.js @@ -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