canCreateReaction

Function

Utility that determines whether a Channel allows a given PostReaction and whether the User has permissions to create it

Parameters

Parameter Type Default Notes
channel Required IChannel
value Required PostReaction
user Optional IUser | IDiscussionsUser {}

Returns

{boolean}

boolean

Function defined in discussions/src/utils/reactions/can-create-reaction.ts:13