Group
create
Creates a new group
moises.group.create
Parameters
Parameter | Type | Description |
---|---|---|
name | string | The name of the group |
id | string | The ID of the group |
type | string | The type of the group |
order | number | The order of the group |
solo | boolean | Whether the group is solo |
muted | boolean | Whether the group is muted |
pan | number | The pan of the group |
volume | number | The volume of the group |
options | Object | Additional options for the group |
Returns:
Promise<Object>
- Promise that resolves with the created group object
Return Object Structure:
// When the promise resolves, you get:
{
groupId: "example" // string
}
Usage Example
import { initMoisesExtension } from '@moises.ai/extension'
const useMoisesExtension = initMoisesExtension({
id: 'id',
name: 'name',
description: 'description',
icon: 'icon',
version: 'version',
author: 'author'
})
const { moises } = useMoisesExtension()
const groupId = await moises.group.create({ name: "My Group" })
console.log(groupId) // "group-123"
This file is automatically generated. Do not edit manually.