MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / parseFeishuChannelId

Function parseFeishuChannelId

src/runtime/adapters/feishu.ts:65–75  ·  view source on GitHub ↗
(channelId: string)

Source from the content-addressed store, hash-verified

63 : Lark.Domain.Feishu;
64}
65
66export function parseFeishuChannelId(channelId: string): string {
67 if (!channelId.startsWith("feishu-")) {
68 throw new Error(`[Feishu] Invalid channelId: ${channelId}`);
69 }
70
71 const chatId = channelId.replace("feishu-", "").trim();
72 if (!chatId) {
73 throw new Error(`[Feishu] Invalid channelId: ${channelId}`);
74 }
75 return chatId;
76}
77
78export function normalizeFeishuMessage(

Callers 3

sendMessageMethod · 0.85
sendFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected