Skip to content

Commit c1bdf45

Browse files
committed
chore: add deleteAll parameter to Message#unreact
1 parent cae2801 commit c1bdf45

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/classes/Message.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,12 +385,14 @@ export class Message {
385385
/**
386386
* Un-react from a message
387387
* @param emoji Unicode or emoji ID
388+
* @param deleteAll Remove all reactions
388389
*/
389-
async unreact(emoji: string): Promise<void> {
390+
async unreact(emoji: string, deleteAll: boolean): Promise<void> {
390391
return await this.#collection.client.api.delete(
391392
`/channels/${this.channelId as ""}/messages/${this.id as ""}/reactions/${
392393
emoji as ""
393394
}`,
395+
{ remove_all: deleteAll },
394396
);
395397
}
396398

0 commit comments

Comments
 (0)