mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
add voice region getting (#1108)
* add voice region getting * clean up this mess * add docstrings * Update VoiceRegion.js * Update RESTMethods.js
This commit is contained in:
committed by
Schuyler Cebulskie
parent
ff92905848
commit
3f4cbd07dd
@@ -298,6 +298,14 @@ class Client extends EventEmitter {
|
||||
return this.rest.methods.getWebhook(id, token);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch available voice regions
|
||||
* @returns {Collection<string, VoiceRegion>}
|
||||
*/
|
||||
fetchVoiceRegions() {
|
||||
return this.rest.methods.fetchVoiceRegions();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sweeps all channels' messages and removes the ones older than the max message lifetime.
|
||||
* If the message has been edited, the time of the edit is used rather than the time of the original message.
|
||||
|
||||
Reference in New Issue
Block a user