From 1242c5434d441f3f7e0ed4610a9a0815a70072ba Mon Sep 17 00:00:00 2001 From: Pravesh Kunwar Date: Sat, 3 Jul 2021 03:57:41 -0400 Subject: [PATCH] types(VoiceState): fix optional params (#5993) --- src/structures/VoiceState.js | 2 +- typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/VoiceState.js b/src/structures/VoiceState.js index 9fcb2f3e0..f290c0592 100644 --- a/src/structures/VoiceState.js +++ b/src/structures/VoiceState.js @@ -149,7 +149,7 @@ class VoiceState extends Base { /** * Moves the member to a different channel, or disconnects them from the one they're in. - * @param {ChannelResolvable|null} [channel] Channel to move the member to, or `null` if you want to disconnect them + * @param {ChannelResolvable|null} channel Channel to move the member to, or `null` if you want to disconnect them * from voice. * @param {string} [reason] Reason for moving member to another channel or disconnecting * @returns {Promise} diff --git a/typings/index.d.ts b/typings/index.d.ts index f611a6f79..613f9fb0d 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -2154,7 +2154,7 @@ declare module 'discord.js' { public serverMute: boolean | null; public sessionID: string | null; public streaming: boolean; - public selfVideo: boolean; + public selfVideo: boolean | null; public suppress: boolean; public requestToSpeakTimestamp: number | null;