fix: GuildMemberStore: unban returns user

fixes #2388
This commit is contained in:
Lewdcario 2018-03-08 10:08:59 -06:00
parent 85413481ed
commit a68f14500d
No known key found for this signature in database
GPG key ID: F9A141E5527C6660

View file

@ -170,7 +170,7 @@ class GuildMemberStore extends DataStore {
const id = this.client.users.resolveID(user);
if (!id) throw new Error('BAN_RESOLVE_ID');
return this.client.api.guilds(this.guild.id).bans[id].delete({ reason })
.then(() => user);
.then(() => this.client.users.resolve(user));
}