| 6757 | * @returns {Promise<void>} | 6757 | * @returns {Promise<void>} |
| 6758 | */ | 6758 | */ |
| 6759 | export async function saveChat({ chatName, withMetadata, mesId, force = false } = {}) { | 6759 | export async function saveChat({ chatName, withMetadata, mesId, force = false } = {}) { |
| 6760 | if (arguments.length > 1 && typeof arguments[0] !== 'object') { | 6760 | if (arguments.length > 0 && typeof arguments[0] !== 'object') { |
| 6761 | console.trace('saveChat called with positional arguments. Please use an object instead.'); | 6761 | console.trace('saveChat called with positional arguments. Please use an object instead.'); |
| 6762 | [chatName, withMetadata, mesId, force] = arguments; | 6762 | [chatName, withMetadata, mesId, force] = arguments; |
| 6763 | } | 6763 | } |