@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
21 lines • 740 B
TypeScript
/**
* ```js
* import { createChannel } from '@amityco/ts-sdk-react-native'
* 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;
videoStreamId?: string | undefined;
postId?: string | undefined;
} & Pick<Amity.Channel<T>, "displayName" | "avatarFileId" | "isPublic" | "tags" | "metadata">) => Promise<Amity.Cached<Amity.Channel<T>>>;
//# sourceMappingURL=createChannel.d.ts.map