From dd18449ce66961e4f2d4560f608fe225fc217ff8 Mon Sep 17 00:00:00 2001 From: Fleny Date: Fri, 24 Jul 2026 14:27:48 +0200 Subject: [PATCH] fix: Document required permissions for get voice state (#5176) --- packages/rest/src/types.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/rest/src/types.ts b/packages/rest/src/types.ts index f5e8ac8ce..40e8a5445 100644 --- a/packages/rest/src/types.ts +++ b/packages/rest/src/types.ts @@ -2289,6 +2289,9 @@ export interface RestManager { * @param userId - The ID of the user to get the voice state from * @returns An instance of {@link DiscordVoiceState}. * + * @remarks + * If the specified user is connected to a voice channel, the current user must have permission to connect to the channel. + * * @see {@link https://docs.discord.com/developers/resources/voice#get-user-voice-state} */ getUserVoiceState: (guildId: BigString, userId: BigString) => Promise>;