Feat: change profile/group picture (#1916)

* feat: pfp

* Make eslint happy

* Fix typo

* Fix missing comma

* Update src/util/Injected.js

* ESLint

* Update src/util/Injected.js

* mfw purp breaks indentation

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
Wictor Nogueira
2023-03-31 22:21:09 -03:00
committed by GitHub
parent 4846625119
commit dc16bbbdac
4 changed files with 131 additions and 1 deletions

10
index.d.ts vendored
View File

@@ -148,6 +148,12 @@ declare namespace WAWebJS {
/** Unmutes the Chat */
unmuteChat(chatId: string): Promise<void>
/** Sets the current user's profile picture */
setProfilePicture(media: MessageMedia): Promise<boolean>
/** Deletes the current user's profile picture */
deleteProfilePicture(): Promise<boolean>
/** Generic event */
on(event: string, listener: (...args: any) => void): this
@@ -1162,6 +1168,10 @@ declare namespace WAWebJS {
revokeInvite: () => Promise<void>;
/** Makes the bot leave the group */
leave: () => Promise<void>;
/** Sets the group's picture.*/
setPicture: (media: MessageMedia) => Promise<boolean>;
/** Deletes the group's picture */
deletePicture: () => Promise<boolean>;
}
/**