Skip to content

Commit

Permalink
fix: GuildMemberStore: unban returns user
Browse files Browse the repository at this point in the history
fixes #2388
  • Loading branch information
Lewdcario committed Mar 8, 2018
1 parent 8541348 commit a68f145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/GuildMemberStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}


Expand Down

0 comments on commit a68f145

Please sign in to comment.