fix: move invite info to client

Since static methods do not have access to `this.client`, it was giving an error when trying to call these functions. The client itself is a better place for them.
This commit is contained in:
Pedro Lopez
2020-06-17 23:28:54 -04:00
parent 6c7a3f9899
commit b89f0e146f
3 changed files with 14 additions and 21 deletions

3
index.d.ts vendored
View File

@@ -10,6 +10,9 @@ declare namespace WAWebJS {
/**Accepts an invitation to join a group */
acceptInvite(inviteCode: string): Promise<void>
/**Returns an object with information about the invite code's group */
getInviteInfo(inviteCode: string): Promise<object>
/** Enables and returns the archive state of the Chat */
archiveChat(): Promise<boolean>