mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
Fix resolveID typo in guild.unban (#1913)
This commit is contained in:
@@ -842,7 +842,7 @@ class Guild extends Base {
|
|||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
unban(user, reason) {
|
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');
|
if (!id) throw new Error('BAN_RESOLVE_ID');
|
||||||
return this.client.api.guilds(this.id).bans[id].delete({ reason })
|
return this.client.api.guilds(this.id).bans[id].delete({ reason })
|
||||||
.then(() => user);
|
.then(() => user);
|
||||||
|
|||||||
Reference in New Issue
Block a user