feat: getPollVotes (#3807)
* Add required module * Add getPollVotes function * Add getPollVotes function * Add getPollVotes function * Add Message.getPollVotes * Add Message.getPollVotes
This commit is contained in:
parent
87a310a2de
commit
7c7851f4d4
4 changed files with 41 additions and 0 deletions
7
index.d.ts
vendored
7
index.d.ts
vendored
|
|
@ -306,6 +306,9 @@ declare namespace WAWebJS {
|
|||
*/
|
||||
transferChannelOwnership(channelId: string, newOwnerId: string, options?: TransferChannelOwnershipOptions): Promise<boolean>;
|
||||
|
||||
/** Get Poll Votes */
|
||||
getPollVotes(messageId: string): Promise<PollVote[]>
|
||||
|
||||
/** Generic event */
|
||||
on(event: string, listener: (...args: any) => void): this
|
||||
|
||||
|
|
@ -1192,6 +1195,10 @@ declare namespace WAWebJS {
|
|||
* Gets the payment details associated with a given message
|
||||
*/
|
||||
getPayment: () => Promise<Payment>,
|
||||
/**
|
||||
* Get Poll Votes associated with the given message
|
||||
*/
|
||||
getPollVotes: () => Promise<PollVote[]>,
|
||||
/**
|
||||
* Gets the reactions associated with the given message
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue