MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / parseChannel

Function parseChannel

packages/integration-discord/src/utils/parse.ts:30–35  ·  view source on GitHub ↗
(channel: TextChannel)

Source from the content-addressed store, hash-verified

28};
29
30export const parseChannel = (channel: TextChannel): LinenChannel => {
31 return {
32 channelName: channel.name,
33 externalChannelId: channel.id,
34 };
35};
36
37export const parseChannelAndThread = async (
38 message: Pick<Message, 'channel' | 'client'>

Callers 1

parseChannelAndThreadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected