UNPKG

@amityco/ts-sdk

Version:

Amity Social Cloud Typescript SDK

19 lines 677 B
/** * ```js * import { createChannel } from '@amityco/ts-sdk' * const created = await createChannel({ displayName: 'foobar' }) * ``` * * Creates an {@link Amity.Channel} * * @param bundle The data necessary to create a new {@link Amity.Channel} * @returns The newly created {@link Amity.Channel} * * @category Channel API * @async */ export declare const createChannel: <T extends Amity.ChannelType>(bundle: { type: T; userIds?: string[] | undefined; } & Pick<Amity.Channel<T>, "displayName" | "avatarFileId" | "isPublic" | "metadata" | "tags">) => Promise<Amity.Cached<Amity.InternalChannel>>; //# sourceMappingURL=createChannel.d.ts.map