diff --git a/egg.yml b/egg.yml index 89472d334..a546786f0 100644 --- a/egg.yml +++ b/egg.yml @@ -2,7 +2,7 @@ name: Discordeno description: >- Discord Deno TypeScript API library wrapper(Officially vetted library by Discord Team) https://discordeno.netlify.app -version: 7.4.1 +version: 7.4.2 stable: true files: - ./src/**/* diff --git a/src/module/requestManager.ts b/src/module/requestManager.ts index aef9563cb..da35c8531 100644 --- a/src/module/requestManager.ts +++ b/src/module/requestManager.ts @@ -195,7 +195,7 @@ async function runMethod( handleStatusCode(response); // Sometimes Discord returns an empty 204 response that can't be made to JSON. - if (response.status === 204) resolve(); + if (response.status === 204) return resolve(); const json = await response.json(); if (