From 1f4ef4071fc661a3d1d368c28564061823c8bd11 Mon Sep 17 00:00:00 2001 From: Skillz Date: Sun, 16 Aug 2020 17:03:39 -0400 Subject: [PATCH] small bug fix --- egg.yml | 2 +- src/module/requestManager.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 (