diff --git a/src/module/requestManager.ts b/src/module/requestManager.ts index 164a485b7..2c9563421 100644 --- a/src/module/requestManager.ts +++ b/src/module/requestManager.ts @@ -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 (