Merge pull request #52 from Preta-Crowz/fixban

fix ban feature
This commit is contained in:
DjDeveloper 2020-12-04 08:11:13 +05:30 committed by GitHub
commit 87c1efe147
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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