From 1b6d4469bc0a296f7db0577885feea744353f3a7 Mon Sep 17 00:00:00 2001 From: Preta-Crowz Date: Fri, 4 Dec 2020 11:33:15 +0900 Subject: [PATCH] fix ban feature --- src/structures/guild.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/structures/guild.ts b/src/structures/guild.ts index e515235..b4fd05b 100644 --- a/src/structures/guild.ts +++ b/src/structures/guild.ts @@ -91,8 +91,7 @@ export class GuildBans { null, true ) - - if (res.status !== 204) throw new Error('Failed to Add Guild Ban') + if (res.response.status !== 204) throw new Error('Failed to Add Guild Ban') } /** @@ -108,7 +107,7 @@ export class GuildBans { true ) - if (res.status !== 204) return false + if (res.response.status !== 204) return false else return true } }