mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 04:29:15 +00:00
Feat: Add chat_removed and chat_archived events (#1778)
* Add chat_removed and chat_archived events * Make eslint happy --------- Co-authored-by: Rajeh Taher <rajeh@reforward.dev> Co-authored-by: Aliyss Snow <33941859+Aliyss@users.noreply.github.com>
This commit is contained in:
16
index.d.ts
vendored
16
index.d.ts
vendored
@@ -265,6 +265,22 @@ declare namespace WAWebJS {
|
||||
reaction: Reaction
|
||||
) => void): this
|
||||
|
||||
/** Emitted when a chat is removed */
|
||||
on(event: 'chat_removed', listener: (
|
||||
/** The chat that was removed */
|
||||
chat: Chat
|
||||
) => void): this
|
||||
|
||||
/** Emitted when a chat is archived/unarchived */
|
||||
on(event: 'chat_archived', listener: (
|
||||
/** The chat that was archived/unarchived */
|
||||
chat: Chat,
|
||||
/** State the chat is currently in */
|
||||
currState: boolean,
|
||||
/** State the chat was previously in */
|
||||
prevState: boolean
|
||||
) => void): this
|
||||
|
||||
/** Emitted when loading screen is appearing */
|
||||
on(event: 'loading_screen', listener: (percent: string, message: string) => void): this
|
||||
|
||||
|
||||
Reference in New Issue
Block a user