Objects representing a reaction.

Hierarchy

  • default
    • Reaction

Properties

key: string

The key of the reaction.

Accessors

  • get count(): number
  • Count of reactions

    Returns number

  • get hasCurrentUserReacted(): boolean
  • Whether current user has re-actioned.

    Returns boolean

  • get isEmpty(): boolean
  • Whether the reaction is empty (no user reacted).

    Returns boolean

  • get sampledUserIds(): string[]
  • The sampled userIds of the reacted user.

    Returns string[]

  • get updatedAt(): number
  • The updated time of the reaction in milliseconds.

    Returns number

  • get userIds(): string[]
  • Returns string[]

    Since v4.15.0 Use sampledUserIds instead

Methods

  • Parameters

    Returns void

    Applies a reaction event to the reaction instance.