MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / getDefaultChannel

Function getDefaultChannel

packages/core/src/utils/channelUtils.ts:11–24  ·  view source on GitHub ↗
(
	override: Partial<Channel> &
		Pick<Channel, 'id' | 'name' | 'serverId' | 'parentId' | 'type'>,
)

Source from the content-addressed store, hash-verified

9}
10
11export function getDefaultChannel(
12 override: Partial<Channel> &
13 Pick<Channel, 'id' | 'name' | 'serverId' | 'parentId' | 'type'>,
14): Channel {
15 const data: Channel = {
16 bitfield: 0,
17 inviteCode: null,
18 archivedTimestamp: null,
19 solutionTagId: null,
20 lastIndexedSnowflake: null,
21 ...override,
22 };
23 return data;
24}

Callers 5

mockChannelFunction · 0.90
mockThreadFunction · 0.90
createManyChannelsFunction · 0.90
default.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected