mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +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);
|
||||
*/
|
||||
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');
|
||||
return this.client.api.guilds(this.id).bans[id].delete({ reason })
|
||||
.then(() => user);
|
||||
|
|
|
|||
Loading…
Reference in a new issue