.archivedAt

Type: Dateor null

.archivedBy

Type: stringor null

.categoryId

Type: stringor null

.client

Type: Client

.createdAt

Type: Date

.createdBy

Type: string

.docs

Type: Collection

.groupId

Type: string

.id

Type: string

.isPublic

Type: boolean

.name

Type: string

.parentId

Type: stringor null

.raw

Type: Object

.serverId

Type: string

.topic

Type: stringor null

.type

Type: ChannelType

.updatedAt

Type: Dateor null

.createDoc(options:RESTPostDocsBody)

Type: Promise<DocPayload>

Create a new doc in this channel.

Type: Promise<unknown>

Delete the channel.

.deleteDoc(docId:

number

)

Type: Promise<void>

Delete a specific doc from this channel.

.fetchMessage(messageId:

string

)

Type: Promise<Message>

Fetch details for a specific message in the channel.

.fetchMessages(options:RESTGetChannelMessagesQuery)

Type: Promise<Collection>

Fetch from the latest 100 messages in the channel.

.getDoc(docId:

number

)

Type: Promise<DocPayload>

Get a specific doc from this channel.

Type: Promise<unknown>

Get all the docs from this channel.

.send(content:MessageContent)

Type: Promise<Message>

Send a message in the channel.

.update(options:RESTPatchChannelBody)

Type: Promise<Channel>

Update the channel with new data.

.updateDoc(docId:

number

,

options:RESTPutDocBody)

Type: Promise<DocPayload>

Update a specific doc in this channel.