Fix resolveID typo in guild.unban (#1913)

This commit is contained in:
Dragon Fire
2017-09-08 19:45:03 -04:00
committed by Crawl
parent 4748577194
commit 4626bca76f

View File

@@ -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);