createChannel

Function

create channel

Parameters

Parameter Type Default Notes
options Required ICreateChannelOptions

Returns

{Promise}

Promise<IChannel>
Property Type Notes
id string
access Inherited SharingAccess
allowAnonymous Inherited boolean
allowReaction Inherited boolean
allowReply Inherited boolean
createdAt Inherited Date
creator Inherited string
defaultPostStatus Inherited PostStatus
editor Inherited string
softDelete Inherited boolean
updatedAt Inherited Date
allowedReactions Optional Inherited PostReaction[]
blockwords Optional Inherited string[]
groups Optional Inherited string[]
orgs Optional Inherited string[]

Function defined in packages/discussions/src/channels.ts:34