mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
@@ -170,7 +170,7 @@ class GuildMemberStore extends DataStore {
|
|||||||
const id = this.client.users.resolveID(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.guild.id).bans[id].delete({ reason })
|
return this.client.api.guilds(this.guild.id).bans[id].delete({ reason })
|
||||||
.then(() => user);
|
.then(() => this.client.users.resolve(user));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user