fix ban feature

This commit is contained in:
Preta-Crowz 2020-12-04 11:33:15 +09:00
parent fc7111d577
commit 1b6d4469bc

View file

@ -91,8 +91,7 @@ export class GuildBans {
null, null,
true true
) )
if (res.response.status !== 204) throw new Error('Failed to Add Guild Ban')
if (res.status !== 204) throw new Error('Failed to Add Guild Ban')
} }
/** /**
@ -108,7 +107,7 @@ export class GuildBans {
true true
) )
if (res.status !== 204) return false if (res.response.status !== 204) return false
else return true else return true
} }
} }