We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
deleteAll
Message#unreact
1 parent cae2801 commit c1bdf45Copy full SHA for c1bdf45
1 file changed
src/classes/Message.ts
@@ -385,12 +385,14 @@ export class Message {
385
/**
386
* Un-react from a message
387
* @param emoji Unicode or emoji ID
388
+ * @param deleteAll Remove all reactions
389
*/
- async unreact(emoji: string): Promise<void> {
390
+ async unreact(emoji: string, deleteAll: boolean): Promise<void> {
391
return await this.#collection.client.api.delete(
392
`/channels/${this.channelId as ""}/messages/${this.id as ""}/reactions/${
393
emoji as ""
394
}`,
395
+ { remove_all: deleteAll },
396
);
397
}
398
0 commit comments