From 8825bf922f609b36187b586f80453e8b2b5abd81 Mon Sep 17 00:00:00 2001 From: Lucas Hardt Date: Wed, 9 Mar 2022 13:41:51 +0100 Subject: [PATCH] Fix Member.move_to typehint and docstring --- discord/member.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/member.py b/discord/member.py index 6108a3e92..4ebb6263e 100644 --- a/discord/member.py +++ b/discord/member.py @@ -771,7 +771,7 @@ class Member(discord.abc.Messageable, _UserTag): roles: List[:class:`Role`] The member's new list of roles. This *replaces* the roles. - voice_channel: Optional[:class:`VoiceChannel`] + voice_channel: Optional[Union[:class:`VoiceChannel`, :class:`StageChannel`]] The voice channel to move the member to. Pass ``None`` to kick them from voice. timed_out_until: Optional[:class:`datetime.datetime`] @@ -891,7 +891,7 @@ class Member(discord.abc.Messageable, _UserTag): else: await self._state.http.edit_my_voice_state(self.guild.id, payload) - async def move_to(self, channel: VocalGuildChannel, *, reason: Optional[str] = None) -> None: + async def move_to(self, channel: Optional[VocalGuildChannel], *, reason: Optional[str] = None) -> None: """|coro| Moves a member to a new voice channel (they must be connected first). @@ -906,7 +906,7 @@ class Member(discord.abc.Messageable, _UserTag): Parameters ----------- - channel: Optional[:class:`VoiceChannel`] + channel: Optional[Union[:class:`VoiceChannel`, :class:`StageChannel`]] The new voice channel to move the member to. Pass ``None`` to kick them from voice. reason: Optional[:class:`str`]