mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
Webpack build for branch master: 4626bca76f
This commit is contained in:
parent
772fefa442
commit
5eda8af4e5
2 changed files with 2 additions and 2 deletions
|
|
@ -9162,7 +9162,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);
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue