Added Guild.fetchBans()

This commit is contained in:
Amish Shah
2016-08-27 22:48:43 +01:00
parent 22062f1f86
commit ef0f38930f
3 changed files with 25 additions and 1 deletions

View File

@@ -552,6 +552,14 @@ class Guild {
return this.client.rest.methods.unbanGuildMember(this, member);
}
/**
* Fetch a Collection of banned users in this Guild.
* @returns {Promise<String, User>}
*/
fetchBans() {
return this.client.rest.methods.getGuildBans(this);
}
/**
* Gets the URL to this guild's icon (if it has one, otherwise it returns null)
* @type {?String}