feat(handlers): add getAvailableVoiceRegions() (#425)

* add voice endpoint

* feat(handlers): add getVoiceRegions

* Update mod.ts

* remove breaking changes
This commit is contained in:
ITOH
2021-01-23 20:17:11 +01:00
committed by GitHub
parent 26f8321ee9
commit f6f435bb1f
3 changed files with 10 additions and 0 deletions
+5
View File
@@ -729,6 +729,11 @@ export function leaveGuild(guildID: string) {
return RequestManager.delete(endpoints.GUILD_LEAVE(guildID));
}
/** Returns an array of voice regions that can be used when creating servers. */
export function getAvailableVoiceRegions() {
return RequestManager.get(endpoints.VOICE_REGIONS);
}
/** Returns a list of voice region objects for the guild. Unlike the similar /voice route, this returns VIP servers when the guild is VIP-enabled. */
export function getVoiceRegions(guildID: string) {
return RequestManager.get(endpoints.GUILD_REGIONS(guildID));