mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
small bug fix
This commit is contained in:
@@ -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/**/*
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user