mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
backport(Guild): add fetchVanityCode (#2871)
This commit is contained in:
@@ -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' :
|
||||
|
||||
Reference in New Issue
Block a user