diff --git a/src/rest/run_method.ts b/src/rest/run_method.ts index 11c40512d..2ce3d0144 100644 --- a/src/rest/run_method.ts +++ b/src/rest/run_method.ts @@ -94,7 +94,7 @@ export function runMethod( await rest.handleStatusCode(response, errorStack); // Sometimes Discord returns an empty 204 response that can't be made to JSON. - if (response.status === 204) return resolve(undefined as unknown as T); + if (response.status === 204) return resolve(undefined); const json = await response.json(); if (