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 } }