diff --git a/lib/games/addDeveloperProduct.js b/lib/games/addDeveloperProduct.js index cb68b2dd..b3546d7f 100644 --- a/lib/games/addDeveloperProduct.js +++ b/lib/games/addDeveloperProduct.js @@ -27,7 +27,7 @@ const nextFunction = (jar, token, universeId, name, priceInRobux, description) = }).then((res) => { if (res.Success && res.Message === 'Name available') { return http({ - url: `//apis.roblox.com/developer-products/v1/universes/${universeId}/developerproducts?name=${name}&description=${description}&priceInRobux=${priceInRobux}`, + url: '//apis.roblox.com/developer-products/v1/universes/' + universeId + '/developerproducts?name=' + name + '&description=' + description + '&priceInRobux=' + priceInRobux, options: { method: 'POST', jar: jar, @@ -47,7 +47,7 @@ const nextFunction = (jar, token, universeId, name, priceInRobux, description) = productId: typeof res.body === 'object' ? res.body.id : JSON.parse(res.body).id } } else { - throw new Error(`Create product failed, ${res.statusCode} ${res.statusMessage}`) + throw new Error('Create product failed, ' + res.statusCode + ' ' + res.statusMessage + '') } }) } else {