diff --git a/disnake/member.py b/disnake/member.py index cf6d22d8c7..7ce63f8c9e 100644 --- a/disnake/member.py +++ b/disnake/member.py @@ -1023,33 +1023,6 @@ async def edit( data = await http.edit_member(guild_id, self.id, reason=reason, **payload) return Member(data=data, guild=self.guild, state=self._state) - async def fetch_voice_state(self) -> VoiceState: - """|coro| - - Fetches the :class:`VoiceState` of the member. - - .. versionadded:: 2.10 - - Raises - ------ - NotFound - The member for which you tried to fetch a voice state is not - connected to a channel in this guild. - Forbidden - You do not have permission to fetch the member's voice state. - HTTPException - Fetching the voice state failed. - - Returns - ------- - :class:`VoiceState` - The voice state of the member. - """ - data = await self._state.http.get_voice_state(self.guild.id, self.id) - channel_id = utils._get_as_snowflake(data, "channel_id") - channel: Optional[VocalGuildChannel] = self.guild.get_channel(channel_id) # type: ignore - return VoiceState(data=data, channel=channel) - async def request_to_speak(self) -> None: """|coro|