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

Function channelToAnalyticsData

packages/constants/src/analytics.ts:68–78  ·  view source on GitHub ↗
(
	channel: Pick<Channel, 'id' | 'name' | 'type' | 'serverId' | 'inviteCode'>,
)

Source from the content-addressed store, hash-verified

66 'Channel Invite Code'?: string;
67};
68export function channelToAnalyticsData(
69 channel: Pick<Channel, 'id' | 'name' | 'type' | 'serverId' | 'inviteCode'>,
70): ChannelProps {
71 return {
72 'Channel Id': channel.id,
73 'Channel Name': channel.name,
74 'Channel Type': channel.type,
75 'Channel Server Id': channel.serverId,
76 'Channel Invite Code': channel.inviteCode ?? undefined,
77 };
78}
79
80export type ChannelPropsWithSettings = ChannelProps & {
81 'Channel Solution Tag Id'?: Snowflake;

Callers 4

ServerInviteTitleFunction · 0.90
ServerInviteJoinButtonFunction · 0.90
MessageResultPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected