Function: createCollection()
ts
function createCollection(
client,
name,
mediaIds?
): Promise<{
[key: string]: unknown;
collection_id: string;
collection_media_count?: number | null;
collection_name?: string;
collection_type?: string;
}>;Creates a collection, optionally holding some posts from the start.
Parameters
| Parameter | Type | Default value |
|---|---|---|
client | PrivateClient | undefined |
name | string | undefined |
mediaIds? | readonly string[] | [] |
Returns
Promise<{ [key: string]: unknown; collection_id: string; collection_media_count?: number | null; collection_name?: string; collection_type?: string; }>