isPrivateChannel

Function

Determines if the given channel is considered to be a private channel, supporting both legacy permissions and V2 ACL model.

  • isPrivateChannel(channel: IChannel) : boolean

Parameters

Parameter Type Default Notes
channel Required IChannel

An IChannel record

Returns

true if the channel is considered private

boolean

Function defined in common/src/discussions/utils.ts:85