deriveUserRoleV2
Derives the user role for the given channel and user
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| channel Required | IChannel |
an IChannel object |
|
| user Optional | IUser | IDiscussionsUser | {} |
An IUser or IDiscussionUser object |
Returns
the appropriate Role for the given user relative to the given channel
Function defined in packages/common/src/discussions/api/utils/channels/derive-user-role-v2.ts:12