JavaScript
import Whop from '@whop/sdk'; const client = new Whop({ apiKey: 'My API Key', }); const reaction = await client.reactions.create({ resource_id: 'resource_id' }); console.log(reaction.id);
{ "id": "reac_xxxxxxxxxxxxxxxxxxxxxx", "resource_id": "<string>", "user": { "id": "user_xxxxxxxxxxxxx", "username": "johndoe42", "name": "John Doe" }, "emoji": "<string>" }
Creates a new reaction
Required permissions:
chat:read
The app API key from an app from the /dashboard/developer page
Parameters for CreateReaction
The ID of the post or message to react to.
The emoji to react with (e.g., :heart: or '😀'). It will be ignored in forums, as everything will be :heart:
A successful response
Represents a reaction to a feed post
The unique identifier for the entity
"reac_xxxxxxxxxxxxxxxxxxxxxx"
The ID of the post this reaction belongs to
The user who reacted to the post
Show child attributes
The internal ID of the user.
"user_xxxxxxxxxxxxx"
The username of the user from their Whop account.
"johndoe42"
The name of the user from their Whop account.
"John Doe"
The emoji that was used in shortcode format (:heart:)
Was this page helpful?