mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 01:01:30 +00:00
Fix resolveID typo in guild.unban (#1913)
This commit is contained in:
parent
4748577194
commit
4626bca76f
1 changed files with 1 additions and 1 deletions
|
|
@ -842,7 +842,7 @@ class Guild extends Base {
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
unban(user, reason) {
|
unban(user, reason) {
|
||||||
const id = this.client.users.resolverID(user);
|
const id = this.client.users.resolveID(user);
|
||||||
if (!id) throw new Error('BAN_RESOLVE_ID');
|
if (!id) throw new Error('BAN_RESOLVE_ID');
|
||||||
return this.client.api.guilds(this.id).bans[id].delete({ reason })
|
return this.client.api.guilds(this.id).bans[id].delete({ reason })
|
||||||
.then(() => user);
|
.then(() => user);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue