Skip to content

Commit

Permalink
docs(VoiceState): #setRequestToSpeak and #setSuppressed returns a…
Browse files Browse the repository at this point in the history
… `Promise` instead of `void` (#5558)
  • Loading branch information
skick1234 committed Apr 23, 2021
1 parent 1b827fe commit 705d7b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/structures/VoiceState.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 705d7b3

Please sign in to comment.