fix ban feature

This commit is contained in:
Preta-Crowz 2020-12-04 11:33:15 +09:00
parent fc7111d577
commit 1b6d4469bc
1 changed files with 2 additions and 3 deletions

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