createCommentReaction

See source code

Create a reaction record for one user's reaction to one comment. The id is derived from the comment and user (see createCommentReactionId), so re-reacting overwrites rather than adding.

function createCommentReaction(props: {
  commentId: TLCommentId;
  emoji: string;
  meta?: JsonObject;
  now?: number;
  pageId: TLPageId;
  threadId: TLCommentThreadId;
  userId: string;
}): TLCommentReaction;

Parameters

NameDescription

props

{
  commentId: TLCommentId;
  emoji: string;
  meta?: JsonObject;
  now?: number;
  pageId: TLPageId;
  threadId: TLCommentThreadId;
  userId: string;
};

Returns

Prev
createCommentId
Next
createCommentReactionId