MCPcopy Create free account
hub / github.com/msgbyte/tailchat / createGroupInviteCode

Function createGroupInviteCode

client/shared/model/group.ts:207–217  ·  view source on GitHub ↗
(
  groupId: string,
  inviteType: 'normal' | 'permanent'
)

Source from the content-addressed store, hash-verified

205 * @param groupId 群组id
206 */
207export async function createGroupInviteCode(
208 groupId: string,
209 inviteType: 'normal' | 'permanent'
210): Promise<GroupInvite> {
211 const { data } = await request.post('/api/group/invite/createGroupInvite', {
212 groupId,
213 inviteType,
214 });
215
216 return data;
217}
218
219/**
220 * 编辑群组邀请链接

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected