backport(Guild): add fetchVanityCode (#2871)

This commit is contained in:
SpaceEEC
2018-10-04 00:31:20 +02:00
committed by Isabella
parent 1e85887229
commit c6201ee41b
4 changed files with 27 additions and 0 deletions

View File

@@ -684,6 +684,11 @@ class RESTMethods {
});
}
getGuildVanityCode(guild) {
return this.rest.makeRequest('get', Endpoints.Guild(guild).vanityURL, true)
.then(res => res.code);
}
pruneGuildMembers(guild, days, dry, reason) {
return this.rest.makeRequest(dry ?
'get' :