MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / createChannel

Function createChannel

packages/factory/src/create/channel.ts:3–12  ·  view source on GitHub ↗
(
  options?: Partial<channels>
)

Source from the content-addressed store, hash-verified

1import { channels, prisma } from '@linen/database';
2
3export default async function createChannel(
4 options?: Partial<channels>
5): Promise<channels> {
6 return prisma.channels.create({
7 data: {
8 channelName: 'general',
9 ...options,
10 },
11 });
12}

Calls 1

createMethod · 0.45

Tested by

no test coverage detected