Added guild.unban

This commit is contained in:
Amish Shah
2016-08-27 22:31:14 +01:00
parent 2c056b6418
commit 22062f1f86
6 changed files with 55 additions and 10 deletions

View File

@@ -538,6 +538,20 @@ class Guild {
return this.edit({ splash });
}
/**
* Unbans a member from the Guild
* @param {UserResolvable} member the member to unban
* @returns {Promise<User, Error>}
* @example
* // unban a member
* guild.unban('123123123123')
* .then(user => console.log(`Unbanned ${user.username} from ${guild.name}`))
* .catch(reject);
*/
unban(member) {
return this.client.rest.methods.unbanGuildMember(this, member);
}
/**
* Gets the URL to this guild's icon (if it has one, otherwise it returns null)
* @type {?String}