import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const reaction = await client.reactions.delete('reac_xxxxxxxxxxxxxxxxxxxxxx');
console.log(reaction);trueRemove an emoji reaction from a message or forum post. Only the reaction author or a channel admin can remove a reaction.
Required permissions:
chat:readimport Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const reaction = await client.reactions.delete('reac_xxxxxxxxxxxxxxxxxxxxxx');
console.log(reaction);trueA company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
The unique identifier of the reaction to remove, or the identifier of the message or forum post to remove a reaction from. When passing a message or post ID, you must also provide the emoji argument.
"reac_xxxxxxxxxxxxxxxxxxxxxx"
The emoji to remove, in shortcode or unicode format. For example, ':heart:' or a unicode emoji. Required when the id refers to a message or post instead of a reaction.
A successful response
Represents true or false values.
Was this page helpful?