Update requestManager.ts

This commit is contained in:
Ayyan
2020-12-10 17:59:14 +04:00
committed by GitHub
parent d84e0887c3
commit 8da1c5ca9b

View File

@@ -248,7 +248,7 @@ async function runMethod(
handleStatusCode(response, errorStack);
// Sometimes Discord returns an empty 204 response that can't be made to JSON.
if (response.status === 204) return resolve();
if (response.status === 204) return resolve(undefined);
const json = await response.json();
if (