From 705d7b36af313245d027cb12ba21c2fae7d948c1 Mon Sep 17 00:00:00 2001 From: Skick Date: Fri, 23 Apr 2021 23:24:22 +0700 Subject: [PATCH] docs(VoiceState): `#setRequestToSpeak` and `#setSuppressed` returns a `Promise` instead of `void` (#5558) --- src/structures/VoiceState.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/structures/VoiceState.js b/src/structures/VoiceState.js index cd559cc25..bed0ae0c8 100644 --- a/src/structures/VoiceState.js +++ b/src/structures/VoiceState.js @@ -218,6 +218,7 @@ class VoiceState extends Base { * @example * // Making the client cancel a request to speak * guild.me.voice.setRequestToSpeak(false); + * @returns {Promise} */ 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} */ async setSuppressed(suppressed) { if (typeof suppressed !== 'boolean') throw new TypeError('VOICE_STATE_INVALID_TYPE', 'suppressed');