docs(VoiceState): #setRequestToSpeak and #setSuppressed returns a Promise instead of void (#5558)

This commit is contained in:
Skick
2021-04-23 23:24:22 +07:00
committed by GitHub
parent 1b827fe136
commit 705d7b36af

View File

@@ -218,6 +218,7 @@ class VoiceState extends Base {
* @example
* // Making the client cancel a request to speak
* guild.me.voice.setRequestToSpeak(false);
* @returns {Promise<void>}
*/
async setRequestToSpeak(request) {
const channel = this.channel;
@@ -248,6 +249,7 @@ class VoiceState extends Base {
* @example
* // Moving another user to the audience, or cancelling their invite to speak
* voiceState.setSuppressed(true);
* @returns {Promise<void>}
*/
async setSuppressed(suppressed) {
if (typeof suppressed !== 'boolean') throw new TypeError('VOICE_STATE_INVALID_TYPE', 'suppressed');