From 590ae94cda5e99ff720092566401ea275129dc7d Mon Sep 17 00:00:00 2001 From: F1sxher <72705185+F1sxher@users.noreply.github.com> Date: Sun, 17 Apr 2022 17:59:05 -0400 Subject: [PATCH] remove return type --- src/request.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/request.js b/src/request.js index adaf48f..7b1869c 100644 --- a/src/request.js +++ b/src/request.js @@ -3,7 +3,6 @@ const axios = require('axios').default; /** * Do a `GET` request to an API, usually roblox. * @param {import('../typings/index').RequestOptions} options The request options. - * @returns {Promise} * @example * request.get(...options); */ @@ -42,7 +41,6 @@ exports.get = async (options) => { /** * Do a `POST` request to an API, usually roblox. * @param {import('../typings/index').RequestOptions} options The request options. - * @returns {Promise} * @example * request.get(...options); */ @@ -99,7 +97,7 @@ exports.get = async (options) => { }); if (options.silenceErr) { - return await axios.patch(options.url, JSON.stringify(options.body) || {}, { + return await axios.patch(options.url, options.body || {}, { method: "PATCH", withCredentials: true, headers: finalHeaders, @@ -109,7 +107,7 @@ exports.get = async (options) => { return {code: res.status, headers: res.headers, data: res.data}; }); } else { - return await axios.patch(options.url, JSON.stringify(options.body) || {}, { + return await axios.patch(options.url, options.body || {}, { method: "PATCH", withCredentials: true, headers: finalHeaders,