fix: Document required permissions for get voice state (#5176)

This commit is contained in:
Fleny
2026-07-24 17:57:48 +05:30
committed by GitHub
parent 7bcebecf99
commit dd18449ce6
+3
View File
@@ -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<Camelize<DiscordVoiceState>>;